From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 9F7FF11C5 for ; Fri, 6 Mar 2015 08:39:36 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 05 Mar 2015 23:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,351,1422950400"; d="scan'208";a="694785611" Received: from unknown (HELO Sent) ([10.217.248.209]) by orsmga002.jf.intel.com with SMTP; 05 Mar 2015 23:39:33 -0800 Received: by Sent (sSMTP sendmail emulation); Fri, 06 Mar 2015 08:39:11 +0200 From: Michal Jastrzebski To: dev@dpdk.org Date: Fri, 6 Mar 2015 08:38:59 +0100 Message-Id: <1425627539-8364-1-git-send-email-michalx.k.jastrzebski@intel.com> X-Mailer: git-send-email 2.1.1 Subject: [dpdk-dev] [PATCH] testpmd: bond port creation did not enable bond port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Mar 2015 07:39:37 -0000 When invoking creation of bonded device using: create bonded device mode socket in testpmd the bonded port was not enabled at the end of cmd_create_bonded_device_parsed function. This caused commands 'show port info' and 'show port stats' not working properly with bonding device. This patch fixed it. Signed-off-by: Michal Jastrzebski --- 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 c8312be..8b0ac85 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -4050,6 +4050,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result, nb_ports = rte_eth_dev_count(); reconfig(port_id, res->socket); rte_eth_promiscuous_enable(port_id); + ports[port_id].enabled = 1; } } -- 1.7.9.5