Skip to content

Commit

Permalink
app/testpmd: fix bonding xmit balance policy command
Browse files Browse the repository at this point in the history
[ upstream commit 393e557 ]

Currently there exists inconsistency about name of transmission
policy for a Link Bonding device. "xmit_balance_policy" is not
correct, which should be modified to "balance_xmit_policy".

Fixes: 2950a76 ("bond: testpmd support")
Fixes: ac71839 ("doc: testpmd application user guide")

Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
hushenggitcount authored and bluca committed Nov 9, 2020
1 parent 590b5f4 commit c78e321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/test-pmd/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ static void cmd_help_long_parsed(void *parsed_result,
"set bonding mode IEEE802.3AD aggregator policy (port_id) (agg_name)"
" Set Aggregation mode for IEEE802.3AD (mode 4)"

"set bonding xmit_balance_policy (port_id) (l2|l23|l34)\n"
"set bonding balance_xmit_policy (port_id) (l2|l23|l34)\n"
" Set the transmit balance policy for bonded device running in balance mode.\n\n"

"set bonding mon_period (port_id) (value)\n"
Expand Down
6 changes: 3 additions & 3 deletions doc/guides/testpmd_app_ug/testpmd_funcs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2437,16 +2437,16 @@ For example, to set the MAC address of a Link Bonding device (port 10) to 00:00:

testpmd> set bonding mac 10 00:00:00:00:00:01

set bonding xmit_balance_policy
set bonding balance_xmit_policy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Set the transmission policy for a Link Bonding device when it is in Balance XOR mode::

testpmd> set bonding xmit_balance_policy (port_id) (l2|l23|l34)
testpmd> set bonding balance_xmit_policy (port_id) (l2|l23|l34)

For example, set a Link Bonding device (port 10) to use a balance policy of layer 3+4 (IP addresses & UDP ports)::

testpmd> set bonding xmit_balance_policy 10 l34
testpmd> set bonding balance_xmit_policy 10 l34


set bonding mon_period
Expand Down

0 comments on commit c78e321

Please sign in to comment.