net/mlx5: fix Tx queue completion on stop
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Fri, 6 Nov 2020 16:58:03 +0000 (16:58 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:25 +0000 (19:43 +0100)
commit27b095072b8c8d2dd39dd42923aa631e3ee95942
tree4586bd6ad38b6358eff6c8ed7f104b0379ef2d71
parent70d83ebbbb2554bcab78bfe7f5b102635278bc76
net/mlx5: fix Tx queue completion on stop

The Tx queue completion production index was not reset
on Tx queue stop and there were completions remaining
from the previous queue run. This caused the wrong
completion queue operating and overall Tx queue malfunction
on queue restart.

Fixes: 161d103b231c ("net/mlx5: add queue start and stop")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_txq.c