DORMANTno replies

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

From: RongQiang Xie <hidden>
Date: 2017-06-29 09:32:19
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: RongQiang Xie <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help