app/regex: move mempool creation to worker routine
authorOphir Munk <ophirmu@nvidia.com>
Sun, 10 Jan 2021 11:10:18 +0000 (11:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 12 Jan 2021 22:56:13 +0000 (23:56 +0100)
commit2d1fb3f2a6cae670406555dfa1b38bb3114c08c1
tree5363af0b2178f6d9f46e5df9e48c2d839087286c
parent9b27a37b847237bc7b4f8369e1dad2dce3cdbb44
app/regex: move mempool creation to worker routine

Function rte_pktmbuf_pool_create() is moved from init_port() routine to
run_regex() routine. Looking forward on multi core support - init_port()
will be called only once as part of application startup while mem pool
creation should be called multiple times (per core).

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-regex/main.c