]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix Tx recovery
authorRaja Zidane <rzidane@nvidia.com>
Wed, 18 May 2022 09:42:32 +0000 (12:42 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 1 Jun 2022 07:49:42 +0000 (09:49 +0200)
commit1485d961e2c9d77dfa4900a16b5ba70cbaa4c7ce
tree2518c2313039e129c8e93a4a0502c92423cc1d38
parent96ca87da4f4600beacb1e102351399704b5def26
net/mlx5: fix Tx recovery

When an error occurs in Tx, and it is moved to ERROR state, it
is not recoverable, during recovery it's state cannot be modified
to INIT. to modify state from RESET to INIT, the port must be
passed in modify attributes, and in case of ERROR to READY
modification path, it was not provided.

Provide port number when changing state from RESET to INIT.

Fixes: 3a87b964edd3 ("net/mlx5: create Tx queues with DevX")
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
drivers/net/mlx5/linux/mlx5_verbs.c