bonding: show Tx policy for 802.3AD mode
authorMin Hu (Connor) <humin29@huawei.com>
Mon, 25 Oct 2021 03:15:11 +0000 (11:15 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 2 Nov 2021 17:12:18 +0000 (18:12 +0100)
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]

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c

index d08a1c9..4f51b25 100644 (file)
@@ -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);