net/mlx5: fix Rx queue completion index consistency
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Fri, 6 Nov 2020 17:16:10 +0000 (17:16 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:25 +0000 (19:43 +0100)
commit70d83ebbbb2554bcab78bfe7f5b102635278bc76
tree3998b672d9ec09e835e23acb9fcb9f8af85fcf5e
parent3770feb8273fc778b58f8b570a2a81ea63b005c0
net/mlx5: fix Rx queue completion index consistency

The Rx queue completion consumer index got temporary
wrong value pointing to the midst of the compressed CQE
session. If application crashed at the moment the next
queue restart caused handling wrong CQEs pointed by index
and losing consuming index synchronization, that made
reliable queue restart impossible.

Fixes: 88c0733535d6 ("net/mlx5: extend Rx completion with error handling")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.c