Skip to contentSkip to conversation

bonding: show xmit policy for 802.3AD mode

PATCH Applied Min Hu (Connor) 2 participants 2 messages Oct 25, 2021 – Nov 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding: show xmit policy for 802.3AD mode

As balance xmit policy is supported in bonding mode 4(802.3AD). This patch adds balance xmit policy show in testpmd commands for mode 4. Like:
testpmd> show bonding config 2
Bonding mode: 4
Balance Xmit Policy: BALANCE_XMIT_POLICY_LAYER34 IEEE802.3AD Aggregator Mode: stable
Slaves (2): [0 1]
Active Slaves (2): [1 0]
Primary: [1]

---
 app/test-pmd/cmdline.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
app/test-pmd/cmdline.c +2 -1
index 3221f6e1aa..722f4fb9d9 100644
@@ -6297,7 +6297,8 @@ static void cmd_show_bonding_config_parsed(void *parsed_result,
 	} else
 		printf("\tBonding mode: %d\n", bonding_mode);
 
-	if (bonding_mode == BONDING_MODE_BALANCE) {
+	if (bonding_mode == BONDING_MODE_BALANCE ||
+		bonding_mode == BONDING_MODE_8023AD) {
 		int balance_xmit_policy;
 
 		balance_xmit_policy = rte_eth_bond_xmit_policy_get(port_id);
Signature · 1 line
2.33.0
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · Min Hu (Connor)

As balance xmit policy is supported in bonding mode 4(802.3AD). This patch adds balance xmit policy show in testpmd commands for mode 4. Like:
testpmd> show bonding config 2
Bonding mode: 4
Balance Xmit Policy: BALANCE_XMIT_POLICY_LAYER34 IEEE802.3AD Aggregator Mode: stable
Slaves (2): [0 1]
Active Slaves (2): [1 0]
Primary: [1]

Applied to dpdk-next-net/main, thanks.