From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8C5C51B4EB for ; Fri, 23 Nov 2018 12:18:45 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Nov 2018 03:18:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,269,1539673200"; d="scan'208";a="88609101" Received: from silpixa00383879.ir.intel.com (HELO silpixa00383879.ger.corp.intel.com) ([10.237.223.127]) by fmsmga008.fm.intel.com with ESMTP; 23 Nov 2018 03:18:43 -0800 From: Radu Nicolau To: stable@dpdk.org Cc: ktraynor@redhat.com, Radu Nicolau Date: Fri, 23 Nov 2018 11:12:29 +0000 Message-Id: <1542971549-15000-1-git-send-email-radu.nicolau@intel.com> X-Mailer: git-send-email 2.7.5 Subject: [dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 11:18:46 -0000 [ backported from upstream commit 0ae8071784f353f426fd8ad9bbab2fe0ba39a670 ] Set port status to stopped for newly added devices. Fixes: 2950a769315e ("bond: testpmd support") Signed-off-by: Radu Nicolau Acked-by: Bernard Iremonger --- 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 f71d963..6561783 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5296,6 +5296,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].port_status = RTE_PORT_STOPPED; } } -- 2.7.5