OSDN Git Service

ionic: clean interrupt before enabling queue to avoid credit race
authorNeel Patel <neel.patel@amd.com>
Thu, 2 Feb 2023 21:55:35 +0000 (13:55 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 4 Feb 2023 03:58:53 +0000 (19:58 -0800)
commite8797a058466b60fc5a3291b92430c93ba90eaff
tree6dd96a7e711c668a37ddc7eec6b8c39f7a6c836d
parent69ff53e4a4c9498eeed7d1441f68a1481dc69251
ionic: clean interrupt before enabling queue to avoid credit race

Clear the interrupt credits before enabling the queue rather
than after to be sure that the enabled queue starts at 0 and
that we don't wipe away possible credits after enabling the
queue.

Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling")
Signed-off-by: Neel Patel <neel.patel@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c