> -----Original Message----- > From: dev <[email protected]> On Behalf Of > [email protected] > Sent: Tuesday, September 24, 2019 3:12 PM > To: [email protected]; [email protected]; Akhil Goyal > <[email protected]>; Marko Kovacevic <[email protected]>; > Ori Kam <[email protected]>; Radu Nicolau <[email protected]>; > Tomasz Kantecki <[email protected]>; Sunil Kumar Kori > <[email protected]>; Pavan Nikhilesh <[email protected]> > Cc: [email protected] > Subject: [dpdk-dev] [PATCH v4 02/10] examples/l2fwd-event: add infra for > eventdev > > From: Sunil Kumar Kori <[email protected]> > > 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 either RTE_SCHED_TYPE_ORDERED or RTE_SCHED_TYPE_ATOMIC. > > Usage: > > `--mode="eventdev"` or `--mode="poll"` > `--eventq-sync="ordered"` or `--eventq-sync="atomic"` > > Signed-off-by: Sunil Kumar Kori <[email protected]> > --- > examples/l2fwd-event/Makefile | 1 + > examples/l2fwd-event/l2fwd_eventdev.c | 107 > ++++++++++++++++++++++++++ > examples/l2fwd-event/l2fwd_eventdev.h | 62 +++++++++++++++ > examples/l2fwd-event/main.c | 39 +++++++++- > examples/l2fwd-event/meson.build | 3 +- > 5 files changed, 209 insertions(+), 3 deletions(-) > create mode 100644 examples/l2fwd-event/l2fwd_eventdev.c > create mode 100644 examples/l2fwd-event/l2fwd_eventdev.h > <snip> > > @@ -288,7 +289,12 @@ l2fwd_usage(const char *prgname) > " --[no-]mac-updating: Enable or disable MAC addresses > updating (enabled by default)\n" > " When enabled:\n" > " - The source MAC address is replaced by the TX port MAC > address\n" > - " - The destination MAC address is replaced by > 02:00:00:00:00:TX_PORT_ID\n", > + " - The destination MAC address is replaced by > 02:00:00:00:00:TX_PORT_ID\n" > + " --mode: Packet transfer mode for I/O, poll or eventdev\n" > + " Default mode = eventdev\n" > + " --eventq-sync:Event queue synchronization method,\n" > + " ordered or atomic.\nDefault: atomic\n" > + " Valid only if --mode=eventdev\n\n", > prgname); > } 'l2fwd-event' -- --help does not prints this help.

