From: RongQiang Xie Date: Thu, 15 Jun 2017 10:20:48 +0000 (+0800) Subject: app/testpmd: fix comments for bonding commands X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c1dd6e795deab8a1c93a80f2523d472e4f4e472f;p=dpdk.git app/testpmd: fix comments for bonding commands Because the comments in function cmd_add_bonding_slave_parsed() and cmd_remove_bonding_slave_parsed() is 'Set the primary slave for a bonded device',so fix it with 'add the slave for a bonded device' and 'remove the slave from a bonded device'. Signed-off-by: RongQiang Xie Acked-by: Jingjing Wu --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index ff8ffd2a6b..67890717f0 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -4564,7 +4564,7 @@ static void cmd_add_bonding_slave_parsed(void *parsed_result, portid_t master_port_id = res->port_id; portid_t slave_port_id = res->slave_id; - /* Set the primary slave for a bonded device. */ + /* add the slave for a bonded device. */ if (0 != rte_eth_bond_slave_add(master_port_id, slave_port_id)) { printf("\t Failed to add slave %d to master port = %d.\n", slave_port_id, master_port_id); @@ -4622,7 +4622,7 @@ static void cmd_remove_bonding_slave_parsed(void *parsed_result, portid_t master_port_id = res->port_id; portid_t slave_port_id = res->slave_id; - /* Set the primary slave for a bonded device. */ + /* remove the slave from a bonded device. */ if (0 != rte_eth_bond_slave_remove(master_port_id, slave_port_id)) { printf("\t Failed to remove slave %d from master port = %d.\n", slave_port_id, master_port_id);