net/bonding: fix forward packets failed
Subsystems (2)
PATCH 1/1 net/bonding: fix forward packets failed
The bond port is failed to forward packets in Link Aggregation 802.3AD(4) mode. Because bond devices get LACP packets from rx_ring instead of tx_ring.
This commit will get LACP packets from tx_ring instead.
--- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bonding/rte_eth_bond_8023ad.c +1 -1
@@ -941,7 +941,7 @@ bond_mode_8023ad_periodic_cb(void *arg)/* Find LACP packet to this port. Do not check subtype, * it is done in function that queued packet */ -int retval =rte_ring_dequeue (port->rx_ring, +int retval =rte_ring_dequeue (port->tx_ring, (void **)&lacp_pkt);if (retval !=0 )
Signature · 1 line
2.34.1
Quoted 15 lines
-----Original Message-----
From: Kaiwen Deng <[email protected]>
Sent: Friday, March 10, 2023 12:42 PM
To: [email protected]
Cc: [email protected]; Yang, Qiming <[email protected]>; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Chas Williams <[email protected]>; Min Hu (Connor) <[email protected]>; Tomasz Kulasek <[email protected]>; Doherty, Declan <[email protected]>
Subject: [PATCH] net/bonding: fix forward packets failedThe bond port is failed to forward packets in Link Aggregation 802.3AD(4) mode. Because bond devices get LACP packets from
rx_ringinstead oftx_ring.
Quoted 8 lines
This commit will get LACP packets from
tx_ringinstead.Fixes 112891cd27e5 ("net/bonding: add dedicated HW queues for LACPcontrol")
Cc: [email protected]Signed-off-by Kaiwen Deng <[email protected]>---
Quoted 9 lines · Kaiwen Deng
The bond port is failed to forward packets in Link Aggregation 802.3AD(4) mode. Because bond devices get LACP packets from
rx_ringinstead oftx_ring.This commit will get LACP packets from
tx_ringinstead.Fixes 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
Fixes commit is from 2017, was 802.3AD mode broken since that time? Or is this for a specific use case?
Quoted 18 lines
Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/bonding/rte_eth_bond_8023ad.c +1
-1@@ -941,7 +941,7 @@ bond_mode_8023ad_periodic_cb(void *arg)/* Find LACP packet to this port. Do not check subtype, * it is done in function that queued packet */ -int retval =rte_ring_dequeue (port->rx_ring, +int retval =rte_ring_dequeue (port->tx_ring, (void **)&lacp_pkt);if (retval !=0 )