net/mlx5: fix Rx queue state update
authorMichael Baum <michaelba@nvidia.com>
Thu, 3 Sep 2020 10:13:33 +0000 (10:13 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:08 +0000 (18:55 +0200)
commit6c29e209fe918ab0afe34686533ae0aca4fb98d8
tree1faae88a1639538e7dc36aacbecdd8f1eb5ba83b
parent93fa67fb119147e0219351fd1cbc54645e15dcab
net/mlx5: fix Rx queue state update

In order to support DevX Rx queue stop and start operations, the state
of the queue should be updated in FW.
The state update PRM command requires to set both the current state and
the new requested state.

The current state and the new requested state fields setting were
wrongly switched.

Switch them back to the correct setting.

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