From 51c1b8f8a0f0ae6fca1692d6af4bdb1d7b65b3c8 Mon Sep 17 00:00:00 2001 From: Xueming Li Date: Fri, 15 Oct 2021 17:55:48 +0800 Subject: [PATCH] net/bonding: fix Tx queue release When release Tx queue, Rx queue data got freed because wrong Tx queue data located. This patch fixes the wrong Tx queue data location. Fixes: 7483341ae553 ("ethdev: change queue release callback") Signed-off-by: Xueming Li Reviewed-by: Ferruh Yigit --- drivers/net/bonding/rte_eth_bond_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 4c604d6aec..0ca34c604b 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -2343,7 +2343,7 @@ bond_ethdev_rx_queue_release(struct rte_eth_dev *dev, uint16_t queue_id) static void bond_ethdev_tx_queue_release(struct rte_eth_dev *dev, uint16_t queue_id) { - void *queue = dev->data->rx_queues[queue_id]; + void *queue = dev->data->tx_queues[queue_id]; if (queue == NULL) return; -- 2.20.1