examples/l3fwd: support separate buffer pool per port
authorShreyansh Jain <shreyansh.jain@nxp.com>
Thu, 25 Apr 2019 09:40:19 +0000 (15:10 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 May 2019 22:47:58 +0000 (00:47 +0200)
commitf0a26885b3003c89d5680a41a5e3c7e59d7c1989
treee9218dd9b8e68e15583eeed37d7621ca9159d284
parent8bd5f07c7a1ac0c5b8d16758efc3ada3e16b0adc
examples/l3fwd: support separate buffer pool per port

Traditionally, only a single buffer pool per port
(or, per-port-per-socket) is created in l3fwd application.

If separate pools are created per-port, it might lead to gain in
performance as packet alloc/dealloc requests would be isolated
across ports (and their corresponding lcores).

This patch adds an argument '--per-port-pool' to the l3fwd application.
By default, old mode of single pool per port (split on sockets) is
active.

L3fwd user guide is also updated by this patch.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
doc/guides/sample_app_ug/l3_forward.rst
examples/l3fwd/main.c