app/testpmd: fix NUMA structures initialization
authorYulong Pei <yulong.pei@intel.com>
Wed, 3 May 2017 10:29:47 +0000 (18:29 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 6 May 2017 08:22:58 +0000 (10:22 +0200)
commit487f9a592a273bbb0534652bc836cabc0af14100
tree60640aa624c909680b5ad5003e6862370082040e
parent09a670e8716f57ad8fd26761bf8e8d8ff22b85c5
app/testpmd: fix NUMA structures initialization

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 <yulong.pei@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
app/test-pmd/parameters.c
app/test-pmd/testpmd.c