> -----Original Message-----
> From: Matan Azrad <[email protected]>
> Sent: Tuesday, November 3, 2020 8:49
> To: Slava Ovsiienko <[email protected]>
> Cc: [email protected]; [email protected]
> Subject: [PATCH] net/mlx5: fix Tx queue stop state
>
> The Tx queue stop API doesn't call the PMD callback when the state of the
> queue is stopped.
> The drivers should update the state to be stopped when the queue stop
> callback is done successfully or when the port is stopped.
> The drivers should update the state to be started when the queue start
> callback is done successfully or when the port is started.
>
> The driver wrongly didn't update the state to be started when the port start
> callback was done what remained the state as stopped.
> Following call to a queue stop API was not completed by ethdev layer because
> the state is already stopped.
>
> Move the state update from the Tx queue setup to the port start callback.
>
> Fixes: 161d103b231c ("net/mlx5: add queue start and stop")
> Cc: [email protected]
>
> Signed-off-by: Matan Azrad <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>