summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAya Levin <ayal@mellanox.com>2020-03-16 16:53:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-01 11:01:50 +0200
commitf94d69e5f6824ab9f5b753758e5bf233b68eab04 (patch)
tree2baef78454758a1b7af5344316ef4ab06117cf14 /kernel
parentbd81b9ba546ad56961d3d1ffd42d28d60971f24c (diff)
net/mlx5e: Fix ICOSQ recovery flow with Striding RQ
[ Upstream commit e239c6d686e1c37fb2ab143162dfb57471a8643f ] In striding RQ mode, the buffers of an RX WQE are first prepared and posted to the HW using a UMR WQEs via the ICOSQ. We maintain the state of these in-progress WQEs in the RQ SW struct. In the flow of ICOSQ recovery, the corresponding RQ is not in error state, hence: - The buffers of the in-progress WQEs must be released and the RQ metadata should reflect it. - Existing RX WQEs in the RQ should not be affected. For this, wrap the dealloc of the in-progress WQEs in a function, and use it in the ICOSQ recovery flow instead of mlx5e_free_rx_descs(). Fixes: be5323c8379f ("net/mlx5e: Report and recover from CQE error on ICOSQ") 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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions