From 99fb0a03fd1e4ce2ea839014a5d0df87a1282405 Mon Sep 17 00:00:00 2001 From: Dongsheng Rong Date: Tue, 22 Sep 2020 18:29:32 +0800 Subject: [PATCH] net/bonding: fix Rx queue conversion In 'bond_ethdev_rx_burst_alb()' in Rx path, 'bond_rx_queue' should be used, not 'bond_tx_queue'. Fixes: 06fe78b98ccd ("bond: add mode 6") Cc: stable@dpdk.org Signed-off-by: Dongsheng Rong Signed-off-by: RongQing Li Reviewed-by: Wei Hu (Xavier) --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 05ac25fcad..1c404b2edd 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -534,8 +534,8 @@ mode6_debug(const char __rte_unused *info, static uint16_t bond_ethdev_rx_burst_alb(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) { - struct bond_tx_queue *bd_tx_q = (struct bond_tx_queue *)queue; - struct bond_dev_private *internals = bd_tx_q->dev_private; + struct bond_rx_queue *bd_rx_q = (struct bond_rx_queue *)queue; + struct bond_dev_private *internals = bd_rx_q->dev_private; struct rte_ether_hdr *eth_h; uint16_t ether_type, offset; uint16_t nb_recv_pkts; -- 2.20.1