app/testpmd: optimize mbuf pool allocation
authorPhil Yang <phil.yang@arm.com>
Wed, 12 Sep 2018 01:54:26 +0000 (09:54 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Sep 2018 13:21:36 +0000 (15:21 +0200)
commitdbfb8ec7094c7115c6d620929de2aedfc9e440aa
tree22e4e014c966e65c6b3f8bf1f961b89a7df6506d
parentc127be93f619a8d006e1449cabe904340ddee139
app/testpmd: optimize mbuf pool allocation

By default, testpmd will create membuf pool for all NUMA nodes and
ignore EAL configuration.

Count the number of available NUMA according to EAL core mask or core
list configuration. Optimized by only creating membuf pool for those
nodes.

Fixes: c9cafcc82de8 ("app/testpmd: fix mempool creation by socket id")
Cc: stable@dpdk.org
Signed-off-by: Phil Yang <phil.yang@arm.com>
Acked-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c