[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 
    xie.rongqiang at zte.com.cn
       
    Thu Jun 29 09:58:56 CEST 2017
    
    
  
Signed-off-by: RongQiang Xie <xie.rongqiang at 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
    
    
More information about the dev
mailing list