From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] app/testpmd: fix vdev socket initialization Date: Mon, 15 Oct 2018 11:58:43 +0100 Message-ID: References: <1539336895-22691-1-git-send-email-phil.yang@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: nd@arm.com, anatoly.burakov@intel.com To: phil.yang@arm.com, dev@dpdk.org Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 44FA1160 for ; Mon, 15 Oct 2018 12:58:47 +0200 (CEST) In-Reply-To: <1539336895-22691-1-git-send-email-phil.yang@arm.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/12/2018 10:34 AM, phil.yang@arm.com wrote: > The cmdline settings of port-numa-config and rxring-numa-config have been > flushed by the following init_config. If we don't configure the > port-numa-config, the virtual device will allocate the device ports to > socket 0. It will cause failure when the socket 0 is unavailable. > > eg: > testpmd -l --vdev net_pcap0,iface=lo > --socket-mem=64 -- --numa --port-numa-config="(0,1)" > --ring-numa-config="(0,1,1),(0,2,1)" -i > > ... > Configuring Port 0 (socket 0) > Failed to setup RX queue:No mempool allocation on the socket 0 > EAL: Error - exiting with code: 1 > Cause: Start ports failed > > Fix by allocate the devices port to the first available socket or the > socket configured in port-numa-config. > > Fixes: 487f9a5 ("app/testpmd: fix NUMA structures initialization") > > Signed-off-by: Phil Yang > Reviewed-by: Gavin Hu Fixes: 487f9a592a27 ("app/testpmd: fix NUMA structures initialization") Fixes: 20a0286fd2c0 ("app/testpmd: check socket id validity") Cc: stable@dpdk.org Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/master, thanks.