From mboxrd@z Thu Jan 1 00:00:00 1970 From: RongQiang Xie Subject: [PATCH] app/testpmd:add bond type description Date: Fri, 30 Jun 2017 09:52:41 +0800 Message-ID: <201706300158.v5U1wmLt087572@mse01.zte.com.cn> Cc: dev@dpdk.org, RongQiang Xie To: jingjing.wu@intel.com Return-path: Received: from out1.zte.com.cn (out1.zte.com.cn [202.103.147.172]) by dpdk.org (Postfix) with ESMTP id 8BC652B84 for ; Fri, 30 Jun 2017 03:58:51 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. And also,The primary port just use in mode active backup and tlb,so,when the mode is the active backup or tlb we show the primary port info. Signed-off-by: RongQiang Xie --- app/test-pmd/cmdline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4eac498..1ae5fc0 100755 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -4455,6 +4455,7 @@ static void cmd_show_bonding_config_parsed(void *parsed_result, printf("\tActive Slaves: []\n"); } + if (bonding_mode == BONDING_MODE_ACTIVE_BACKUP || bonding_mode == BONDING_MODE_TLB) { primary_id = rte_eth_bond_primary_get(port_id); -- 1.8.3.1