[dpdk-dev] [PATCH v4 02/10] examples/l2fwd-event: add infra for eventdev
Nipun Gupta
nipun.gupta at nxp.com
Fri Sep 27 15:08:30 CEST 2019
> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of
> pbhagavatula at marvell.com
> Sent: Tuesday, September 24, 2019 3:12 PM
> To: jerinj at marvell.com; bruce.richardson at intel.com; Akhil Goyal
> <akhil.goyal at nxp.com>; Marko Kovacevic <marko.kovacevic at intel.com>;
> Ori Kam <orika at mellanox.com>; Radu Nicolau <radu.nicolau at intel.com>;
> Tomasz Kantecki <tomasz.kantecki at intel.com>; Sunil Kumar Kori
> <skori at marvell.com>; Pavan Nikhilesh <pbhagavatula at marvell.com>
> Cc: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH v4 02/10] examples/l2fwd-event: add infra for
> eventdev
>
> From: Sunil Kumar Kori <skori at marvell.com>
>
> 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 <skori at marvell.com>
> ---
> 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.
More information about the dev
mailing list