* [dpdk-dev] [PATCH] bonding: show xmit policy for 802.3AD mode
@ 2021-10-25 3:15 Min Hu (Connor)
2021-11-02 17:14 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Min Hu (Connor) @ 2021-10-25 3:15 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit, thomas
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>
---
app/test-pmd/cmdline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 3221f6e1aa..722f4fb9d9 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -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);
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] bonding: show xmit policy for 802.3AD mode
2021-10-25 3:15 [dpdk-dev] [PATCH] bonding: show xmit policy for 802.3AD mode Min Hu (Connor)
@ 2021-11-02 17:14 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2021-11-02 17:14 UTC (permalink / raw)
To: Min Hu (Connor), dev; +Cc: thomas
On 10/25/2021 4:15 AM, Min Hu (Connor) wrote:
> 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>
Applied to dpdk-next-net/main, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-02 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 3:15 [dpdk-dev] [PATCH] bonding: show xmit policy for 802.3AD mode Min Hu (Connor)
2021-11-02 17:14 ` 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).