app/testpmd: fix mempool creation by socket id
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 9 May 2017 07:28:37 +0000 (10:28 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 16:39:50 +0000 (18:39 +0200)
commitc9cafcc82de8f1e8fb562509e24c905f0321ecb8
treed5aeab6542fe23ef2003dfa03d0e478a3d300ddf
parent83baf56aa725cfee07dc6c706777e2019aa2c861
app/testpmd: fix mempool creation by socket id

The test assumes the socket ids are contiguous. This
is not necessarily the case on all servers and may cause
mempool creation to fail.

Fixing it by detecting the list of valid socket ids and
use it for the mempool creation.

Fixes: 7acf894d07d1 ("app/testpmd: detect numa socket count")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h