From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/testpmd: check socket id validity Date: Wed, 30 Apr 2014 14:24:28 +0200 Message-ID: <1940594.10Qg9mfMu6@xps13> References: <1397569899-18315-1-git-send-email-david.marchand@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Liu Xiaofeng Return-path: In-Reply-To: <1397569899-18315-1-git-send-email-david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 2014-04-15 15:51, David Marchand: > From: Liu Xiaofeng > > Now socket id is from device's numa_node, if it is invalid, just set it to 0 > as default to avoid crash which will be caused by the reference to > port_per_socket[socket_id]. > > Also one warning is displayed to user that port-numa-config and > ring-numa-config parameters should be used along with --numa for NUMA mode. > > A check for NUMA_NO_CONFIG was also missing from init_fwd_stream(). > > Signed-off-by: Liu Xiaofeng Acked-by: Thomas Monjalon Applied for version 1.6.0r2. Thanks -- Thomas