From patchwork Fri Jun 30 01:52:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xie RongQiang X-Patchwork-Id: 26047 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id DACD8377A; Fri, 30 Jun 2017 03:58:53 +0200 (CEST) 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) X-scanvirus: By SEG_CYREN AntiVirus Engine X-scanresult: CLEAN X-MAILFROM: X-RCPTTO: X-FROMIP: 10.30.3.20 X-SEG-Scaned: 1 X-Received: unknown,10.30.3.20,20170630094157 Received: from unknown (HELO mse01.zte.com.cn) (10.30.3.20) by localhost with (AES256-SHA encrypted) SMTP; 30 Jun 2017 01:41:57 -0000 Received: (from root@localhost) by mse01.zte.com.cn id v5U1wmLt087572; Fri, 30 Jun 2017 09:58:48 +0800 (GMT-8) (envelope-from xie.rongqiang@zte.com.cn) Message-Id: <201706300158.v5U1wmLt087572@mse01.zte.com.cn> Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v5U1rdNw072232; Fri, 30 Jun 2017 09:53:39 +0800 (GMT-8) (envelope-from xie.rongqiang@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.43.166.171]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017063009534432-2739150 ; Fri, 30 Jun 2017 09:53:44 +0800 From: RongQiang Xie To: jingjing.wu@intel.com Cc: dev@dpdk.org, RongQiang Xie Date: Fri, 30 Jun 2017 09:52:41 +0800 X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-06-30 09:53:44, Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-06-30 09:53:24, Serialize complete at 2017-06-30 09:53:24 X-MAIL: mse01.zte.com.cn v5U1wmLt087572 X-MSS: AUDITRELEASE@mse01.zte.com.cn X-HQIP: 127.0.0.1 Subject: [dpdk-dev] [PATCH] app/testpmd:add bond type description X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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);