]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Check device state when polling CQ
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 24 Jul 2022 22:11:19 +0000 (01:11 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Oct 2022 14:50:37 +0000 (15:50 +0100)
commit5fd08f653991faf3dcbdfe35f38e1b9274bdd341
treea4d5da8dc680a427b6ef924d87093738468b05bb
parentc4193a1281ac6c209e1586b8ff07297b5a9cd8ad
net/mlx5: DR, Check device state when polling CQ

Calling fast teardown as part of the normal unloading caused
a problem with SW steering - SW steering still needs to clear
its tables, write to ICM and poll for completions.
When teardown has been done, SW steering keeps polling the CQ
forever, because nobody flushes it.

This patch fixes the issue by checking the device state in
cases where no CQE was returned.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c