app/testpmd: reserve NUMA node per port and per ring
authorPhil Yang <phil.yang@arm.com>
Thu, 18 Oct 2018 10:39:25 +0000 (18:39 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:05 +0000 (22:14 +0200)
commita569af2481cd3bd29e5c6d49f2d2f95586d750a8
treefdd12c916a95a8c5bc645543851ae5067383ad03
parentc9aa56edec8ee3d210904c36e145a592a8a56218
app/testpmd: reserve NUMA node per port and per ring

If user explicitly requested memory to be allocated from a socket via
`port-numa-config` and `ring-numa-config`, and if that socket is
valid, add that socket into socket_ids[] so that mempool allocated for
that socket.

Fixes: dbfb8ec7094c ("app/testpmd: optimize mbuf pool allocation")
Cc: stable@dpdk.org
Suggested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/parameters.c