net/mlx5: fix Tx queue start
authorMatan Azrad <matan@nvidia.com>
Tue, 27 Oct 2020 06:43:25 +0000 (06:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:04 +0000 (23:35 +0100)
commit89f170c0da1b9debbc962f6b68afdda09e4465bb
treec214e375bba2d31c5340191d0d79bb6ea243d4ff
parentd51475d1bfa520f10e676b1f3273d138c421ca51
net/mlx5: fix Tx queue start

The Tx queue stop\start operations update the HW state of the Tx queue
object. The stop API should update the state from ready to reset in
order to stop any queue traffic and the start API should update the
state from reset to ready in order to open the traffic path.

The start API wrongly tried to change the state from ready to ready what
caused a failure in FW on the current state validation.

Replace ready to ready command by reset to ready command in the Tx start
API.

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