app/testpmd: add multiple pools per core creation
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Fri, 16 Oct 2020 16:44:36 +0000 (16:44 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 20:26:40 +0000 (22:26 +0200)
commit26cbb4191e91c07e8f498949b15ad33659797996
tree4c63737d351a0fb58c6fb30aa9d0d9c1163a6e1d
parent4ff702b5dfa94fbc5d8fd8561277f106dafe1266
app/testpmd: add multiple pools per core creation

The command line parameter --mbuf-size is updated, it can handle
the multiple values like the following:

--mbuf-size=2176,512,768,4096

specifying the creation the extra memory pools with the requested
mbuf data buffer sizes. If some buffer split feature is engaged
the extra memory pools can be used to configure the Rx queues
with rte_the_dev_rx_queue_setup_ex().

The extra pools are created with requested sizes, and pool names
are assigned with appended index: mbuf_pool_socket_%socket_%index.
Index zero is used to specify the first mandatory pool to maintain
compatibility with existing code.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
app/test-pmd/bpf_cmd.c
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/run_app.rst