app/testpmd: detect numa socket count
authorStephen Hurd <shurd@broadcom.com>
Fri, 21 Aug 2015 02:25:21 +0000 (19:25 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 24 Oct 2015 19:41:17 +0000 (21:41 +0200)
commit7acf894d07d1cfbab50c525300e5c61fce2468d6
tree5d9c09fc1ee8a3ba2b53ec048ec15e4aff74f7fa
parente83982c4b37dde36c3d3be9561783cac92396a4a
app/testpmd: detect numa socket count

Currently, there is a MAX_SOCKET macro which artificially limits the
number of NUMA sockets testpmd can use.  Anything on a higher socket
ends up using socket zero.  This patch replaces this with a variable
set during set_default_fwd_lcores_config() and uses RTE_MAX_NUMA_NODES
where a hard-coded max number of sockets is required.

Signed-off-by: Stephen Hurd <shurd@broadcom.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h