net/mlx5e: RX, Fix flush and close release flow of regular rq for legacy rq
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 22 May 2023 18:18:53 +0000 (21:18 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 5 Jul 2023 17:57:03 +0000 (10:57 -0700)
commit2e2d1965794d22fbe86df45bf4f933216743577d
tree11283eb0ce13b8774ec3d443eb80471d7e1208dc
parentd543b649ffe58a0cb4b6948b3305069c5980a1fa
net/mlx5e: RX, Fix flush and close release flow of regular rq for legacy rq

Regular (non-XSK) RQs get flushed on XSK setup and re-activated on XSK
close. If the same regular RQ is closed (a config change for example)
soon after the XSK close, a double release occurs because the missing
wqes get released a second time.

Fixes: 3f93f82988bc ("net/mlx5e: RX, Defer page release in legacy rq for better recycling")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c