]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix missing reset of SW metadata in Striding RQ reset
authorAya Levin <ayal@mellanox.com>
Thu, 12 Mar 2020 10:35:32 +0000 (12:35 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Mar 2020 21:43:02 +0000 (14:43 -0700)
commit1afd2cf42d87630b1e7555b070f4188b5610fde5
tree9a6127aec48cb91d11f1b5539472337a9dc7399f
parent3a97cc23ef103b88101aabc070547ad31937d3e4
net/mlx5e: Fix missing reset of SW metadata in Striding RQ reset

When resetting the RQ (moving RQ state from RST to RDY), the driver
resets the WQ's SW metadata.
In striding RQ mode, we maintain a field that reflects the actual
expected WQ head (including in progress WQEs posted to the ICOSQ).
It was mistakenly not reset together with the WQ. Fix this here.

Fixes: 96ba22c84d81 ("net/mlx5e: Report and recover from CQE with error on RQ")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h