From de561750c32692ae86df16f7bd5940d592971d88 Mon Sep 17 00:00:00 2001 From: Tonghao Zhang Date: Wed, 27 Nov 2019 22:18:42 +0800 Subject: [PATCH] net/mlx5: clean up redundant assignment The type of txq has been assigned in mlx5_txq_hairpin_new. Fixes: ae18a1ae9692 ("net/mlx5: support Tx hairpin queues") Cc: stable@dpdk.org Signed-off-by: Tonghao Zhang Acked-by: Ori Kam --- 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 bac4f71c24..1c4f7e7a5d 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -272,7 +272,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.20.1