examples/l3fwd: add framework for event device
authorSunil Kumar Kori <skori@marvell.com>
Tue, 28 Jan 2020 05:34:55 +0000 (11:04 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Jan 2020 09:04:25 +0000 (10:04 +0100)
commite2de1f7bb9668415c8fdfce6b736112bfb24f377
treebc3d4f80724890302987e0926bc05bb6838cc0b4
parent587e1fe1d59c5cd92f33f597b9886b660f515dcf
examples/l3fwd: add framework for event device

Add framework to enable event device as a producer of packets.
To switch between event mode and poll mode the following options
have been added:
`--mode="eventdev"` or `--mode="poll"`
Allow the user to select the schedule type to be either
RTE_SCHED_TYPE_ORDERED, RTE_SCHED_TYPE_ATOMIC or RTE_SCHED_TYPE_PARALLEL
through:
`--eventq-sched="ordered"` or `--eventq-sched="atomic"` or
`--eventq-sched="parallel"`
Allow the user to specify the number of Rx queues to be connected to
event queue using:
`--event-eth-rxqs`

Poll mode is still the default operation mode.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
MAINTAINERS
examples/l3fwd/Makefile
examples/l3fwd/l3fwd.h
examples/l3fwd/l3fwd_event.c [new file with mode: 0644]
examples/l3fwd/l3fwd_event.h [new file with mode: 0644]
examples/l3fwd/main.c
examples/l3fwd/meson.build