]> git.dujemihanovic.xyz Git - linux.git/commit
net/mlx5e: SHAMPO, Release in progress headers
authorDragos Tatulea <dtatulea@nvidia.com>
Thu, 15 Aug 2024 07:16:09 +0000 (10:16 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 23:15:57 +0000 (16:15 -0700)
commit94e521937839475b83bac46e4d3ccba332e12064
tree07589eae8fa3a1567d0f03fefbfdfaa95af1951b
parentf232de7cdb4b99adb2c7f2bc5e0b7e4e1292873b
net/mlx5e: SHAMPO, Release in progress headers

The change in the fixes tag cleaned up too much: it removed the part
that was releasing header pages that were posted via UMR but haven't
been acknowledged yet on the ICOSQ.

This patch corrects this omission by setting the bits between pi and ci
to on when shutting down a queue with SHAMPO. To be consistent with the
Striding RQ code, this action is done in mlx5e_free_rx_missing_descs().

Fixes: e839ac9a89cb ("net/mlx5e: SHAMPO, Simplify header page release in teardown")
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20240815071611.2211873-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c