> -----Original Message-----
> From: [email protected] <[email protected]>
> Sent: Wednesday, November 27, 2019 4:19 PM
> To: [email protected]
> Cc: Tonghao Zhang <[email protected]>; Ori Kam
> <[email protected]>
> Subject: [PATCH dpdk-dev 2/3] net/mlx5: clean up redundant assignment
> 
> From: Tonghao Zhang <[email protected]>
> 
> The type of txq has been assigned in mlx5_txq_hairpin_new.
> 
> Fixes: ae18a1ae9692 ("net/mlx5: support Tx hairpin queues")
> Cc: Ori Kam <[email protected]>
> Signed-off-by: Tonghao Zhang <[email protected]>
> ---
>  drivers/net/mlx5/mlx5_txq.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
> index a0d61644cb7f..e6a841c8d359 100644
> --- a/drivers/net/mlx5/mlx5_txq.c
> +++ b/drivers/net/mlx5/mlx5_txq.c
> @@ -271,7 +271,6 @@ mlx5_tx_hairpin_queue_setup(struct rte_eth_dev
> *dev, uint16_t idx,
>       DRV_LOG(DEBUG, "port %u adding Tx queue %u to list",
>               dev->data->port_id, idx);
>       (*priv->txqs)[idx] = &txq_ctrl->txq;
> -     txq_ctrl->type = MLX5_TXQ_TYPE_HAIRPIN;
>       return 0;
>  }
> 
> --
> 2.23.0

Acked-by: Ori Kam <[email protected]>
Thanks,
Ori

Reply via email to