examples/l2fwd-event: add infra for eventdev
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Wed, 30 Oct 2019 16:26:43 +0000 (21:56 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 4 Nov 2019 17:09:05 +0000 (18:09 +0100)
commit1b2143aa681ae2412da98a076e46c477fafb8588
tree024c457aae1d743d3d709d1b1098a4a20fd206c1
parent4ff457986f760a9d96a2bc82e3f24f2817cd33aa
examples/l2fwd-event: add infra for eventdev

Add infra to select event device as a mode to process packets through
command line arguments. Also, allow the user to select the schedule type
to be RTE_SCHED_TYPE_ORDERED, RTE_SCHED_TYPE_ATOMIC or
RTE_SCHED_TYPE_PARALLEL.

Usage:

`--mode="eventdev"` or `--mode="poll"`
`--eventq-sched="ordered"`, `--eventq-sched="atomic"` or
`--event-sched=parallel`

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
examples/l2fwd-event/Makefile
examples/l2fwd-event/l2fwd_common.h
examples/l2fwd-event/l2fwd_event.c [new file with mode: 0644]
examples/l2fwd-event/l2fwd_event.h [new file with mode: 0644]
examples/l2fwd-event/main.c
examples/l2fwd-event/meson.build