]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:31 +0000 (12:50 +0100)
commitc016ea43b98b74053d8b5a451a76baaad2f96a1c
tree5a5396a2c42364b1d69c7169b63c4ef3256b9ef2
parent5cc425322d2ea0e93e1fe06fc30b0e7e430597eb
ionic: clean interrupt before enabling queue to avoid credit race

[ Upstream commit e8797a058466b60fc5a3291b92430c93ba90eaff ]

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: 5931eb5d68ae ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c