net/bonding: fix Tx queue release
authorXueming Li <xuemingl@nvidia.com>
Fri, 15 Oct 2021 09:55:48 +0000 (17:55 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 15 Oct 2021 10:45:58 +0000 (12:45 +0200)
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 <xuemingl@nvidia.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c

index 4c604d6..0ca34c6 100644 (file)
@@ -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;