app/testpmd: fix numa socket detection
authorStephen Hurd <shurd@broadcom.com>
Wed, 13 Jan 2016 22:23:36 +0000 (14:23 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 5 Mar 2016 19:09:31 +0000 (20:09 +0100)
commitf54fe5ee31ac68b5f1a5d0edfadf544f89f709fe
tree8a3fd9a527944b18d82289e94721ae3b4d562f9f
parent6a34f91690d0b33b9dbfb63ab1f080fbf2879dc6
app/testpmd: fix numa socket detection

Previously, max_socket was set to the highest numbered socket with
an enabled lcore.  The intent is to set it to the highest socket
regardless of it being enabled.

Fixes: 7acf894d07d1 ("app/testpmd: detect numa socket count")

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