DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/bonding: fix Rx queue data destroyed by Tx queue release
@ 2021-10-15  9:55 Xueming Li
  2021-10-15 10:46 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Xueming Li @ 2021-10-15  9:55 UTC (permalink / raw)
  To: dev
  Cc: xuemingl, Chas Williams, Min Hu (Connor),
	Ajit Khaparde, Andrew Rybchenko, Ferruh Yigit, Somnath Kotur

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>
---
 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 542c6633b53..471daad5003 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -2345,7 +2345,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.33.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-15 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  9:55 [dpdk-dev] [PATCH] net/bonding: fix Rx queue data destroyed by Tx queue release Xueming Li
2021-10-15 10:46 ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).