DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd:add bond type description In function cmd_show_bonding_config_parsed() use number represent the bond type, in order more detailed, add bond type description otherwise we may confused about the number type. The primary port just use in mode active backup and tlb, so, when the mode is active backup or tlb show the primary port info.
@ 2017-06-29  7:58 RongQiang Xie
  0 siblings, 0 replies; only message in thread
From: RongQiang Xie @ 2017-06-29  7:58 UTC (permalink / raw)
  To: jingjing.wu; +Cc: dev, RongQiang Xie

Signed-off-by: RongQiang Xie <xie.rongqiang@zte.com.cn>
---
 app/test-pmd/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index fcbc6b1..4eac498 100755
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -4456,7 +4456,7 @@ static void cmd_show_bonding_config_parsed(void *parsed_result,
 
 	}
 	if (bonding_mode == BONDING_MODE_ACTIVE_BACKUP ||
-		bonding_mode ==BONDING_MODE_TLB) {
+		bonding_mode == BONDING_MODE_TLB) {
 		primary_id = rte_eth_bond_primary_get(port_id);
 		if (primary_id < 0) {
 			printf("\tFailed to get primary slave for port = %d\n", port_id);
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-29  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  7:58 [dpdk-dev] [PATCH] app/testpmd:add bond type description In function cmd_show_bonding_config_parsed() use number represent the bond type, in order more detailed, add bond type description otherwise we may confused about the number type. The primary port just use in mode active backup and tlb, so, when the mode is active backup or tlb show the primary port info RongQiang Xie

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).