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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:49 +0000 (11:01 +0200)
commitbd81b9ba546ad56961d3d1ffd42d28d60971f24c
treeb477446fb8e116804ac7dbee711871853a3f1756
parentd8338b5f373a0c8888c1cead4ea2a04893ceb999
net/mlx5e: Fix missing reset of SW metadata in Striding RQ reset

[ Upstream commit 39369fd536d485a99a59d8e357c0d4d3ce19a3b8 ]

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: 8276ea1353a4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h