From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 678D31B10E for ; Mon, 26 Nov 2018 17:44:06 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 29507307DAA3; Mon, 26 Nov 2018 16:44:05 +0000 (UTC) Received: from ktraynor.remote.csb (ovpn-117-230.ams2.redhat.com [10.36.117.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4911C1057042; Mon, 26 Nov 2018 16:44:04 +0000 (UTC) To: Radu Nicolau , stable@dpdk.org References: <1542971549-15000-1-git-send-email-radu.nicolau@intel.com> From: Kevin Traynor Organization: Red Hat Message-ID: Date: Mon, 26 Nov 2018 16:44:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1542971549-15000-1-git-send-email-radu.nicolau@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Mon, 26 Nov 2018 16:44:05 +0000 (UTC) Subject: Re: [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: Mon, 26 Nov 2018 16:44:06 -0000 On 11/23/2018 11:12 AM, Radu Nicolau wrote: > [ backported from upstream commit 0ae8071784f353f426fd8ad9bbab2fe0ba39a670 ] > Got it, thanks > 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; > } > > } >