From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] app/testpmd: initialize port_numa and ring_numa Date: Mon, 01 May 2017 15:35:13 +0200 Message-ID: <4569052.iy7vOOdIzB@xps> References: <1493344915-127542-1-git-send-email-yulong.pei@intel.com> <9BB6961774997848B5B42BEC655768F810D5A0CA@SHSMSX103.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Wu, Jingjing" To: "Pei, Yulong" Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 3745C1C4A for ; Mon, 1 May 2017 15:35:16 +0200 (CEST) In-Reply-To: <9BB6961774997848B5B42BEC655768F810D5A0CA@SHSMSX103.ccr.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 28/04/2017 10:30, Wu, Jingjing: > From: Pei, Yulong > > > > Previous numa_support = 0 by default, it need to add --numa to testpmd > > command line to enable numa, so port_numa and ring_numa were initialized at > > function launch_args_parse(), now testpmd change numa_support = 1 as default, > > so port_numa and ring_numa also need to initialize by default, otherwise port- > > >socket_id will be probed to wrong value. > > > > Fixes: 999b2ee0fe45 ("app/testpmd: enable NUMA support by default") > > > > Signed-off-by: Yulong Pei > > You forgot "fix" in title if the patch is fixing a problem. > Anyway, the change is OK. > Acked-by: Jingjing Wu Please rebase on top of http://dpdk.org/commit/3ab64341d and check if the patch needs to be reworked. The check of port_numa array below is weird. PS: please use --in-reply-to for v5.