[dpdk-dev] [PATCH 00/39] adding eventmode helper library
Anoob Joseph
anoobj at marvell.com
Mon Jun 3 19:32:00 CEST 2019
This series adds support for eventmode helper library and l2fwd-event
application.
First 13 patches creates a new l2fwd application (l2fwd-event). Minor
code reorganization is done to faciliate seamless integration of
eventmode.
Next 22 patches adds eventmode helper library. This library abstracts
the configuration of event device & Rx-Tx event adapters. The library
can be extended to allow users to control all the configuration
exposed by adapters and eth device.
Last 4 patches implements eventmode in l2fwd-event application. With
event device and adapters, fine tuned threads (based on dev
capabilities) can be drafted to maximize performance. Eventmode
library facilitates this and l2fwd-event demonstrates this usage.
With the introduction of eventmode helper library, any poll mode
application can be converted to an eventmode application with simple
steps, enabling multi-core scaling and dynamic load balancing to
various example applications.
Usage:
./l2fwd-event -- <EAL args> -- <l2fwd args> -- --transfer-mode 1
The above command would invoke eventmode and with the default conf
loaded, traffic on one port would be delivered to all enabled cores.
Planned features,
1. Eventmode helper library doesn't intialize ethdev. Since all
applications already do this, eventmode helper would start
from reconfiguring.
2. All features of eventdev and adapters can be exposed to the user
using common CL arguments. The framework for achieving the same
is already in place. It has to be extended to support more
features.
3. Documentation is pending.
Created new app based on discussions,
http://patchwork.dpdk.org/cover/40884/
https://patches.dpdk.org/patch/40901/
Tested with nicvf eth PMD and event_octeontx event PMD on Marvell's
CN83XX platform.
Anoob Joseph (39):
examples/l2fwd-event: create copy of l2fwd
examples/l2fwd-event: move macros to common header
examples/l2fwd-event: move structures to common header
examples/l2fwd-event: move global vars to common header
examples/l2fwd-event: move dataplane code to new file
examples/l2fwd-event: remove unused header includes
examples/l2fwd-event: move drain buffers to new function
examples/l2fwd-event: optimize check for master core
examples/l2fwd-event: move periodic tasks to new func
examples/l2fwd-event: do timer updates only on master
examples/l2fwd-event: move pkt send code to a new func
examples/l2fwd-event: use fprintf in usage print
examples/l2fwd-event: improvements to the usage print
eventdev: add files for eventmode helper
eventdev: add routines for logging eventmode helper
eventdev: add eventmode CL options framework
eventdev: allow application to set ethernet portmask
eventdev: add framework for eventmode conf
eventdev: add common initialize routine for eventmode devs
eventdev: add eventdevice init for eventmode
eventdev: add eventdev port-lcore link
eventdev: add option to specify schedule mode for app stage
eventdev: add placeholder for ethdev init
eventdev: add Rx adapter init in eventmode
eventdev: add routine to validate conf
eventdev: add default conf for event devs field in conf
eventdev: add default conf for Rx adapter conf
eventdev: add default conf for event port-lcore link
eventdev: add routines to display the eventmode conf
eventdev: add routine to access eventmode link info
eventdev: add routine to access event queue for eth Tx
eventdev: add routine to launch eventmode workers
eventdev: add Tx adapter support
eventdev: add support for internal ports
eventdev: display Tx adapter conf
examples/l2fwd-event: add eventmode for l2fwd
examples/l2fwd-event: add eventmode worker
examples/l2fwd-event: add eventmode worker
examples/l2fwd-event: add eventmode worker
config/common_base | 1 +
examples/Makefile | 1 +
examples/l2fwd-event/Makefile | 57 +
examples/l2fwd-event/l2fwd_common.h | 63 +
examples/l2fwd-event/l2fwd_worker.c | 1121 +++++++++++++
examples/l2fwd-event/l2fwd_worker.h | 16 +
examples/l2fwd-event/main.c | 585 +++++++
examples/l2fwd-event/meson.build | 14 +
lib/librte_eal/common/eal_common_log.c | 1 +
lib/librte_eal/common/include/rte_log.h | 1 +
lib/librte_eventdev/Makefile | 6 +-
lib/librte_eventdev/meson.build | 3 +
lib/librte_eventdev/rte_eventdev_version.map | 8 +
lib/librte_eventdev/rte_eventmode_helper.c | 1678 ++++++++++++++++++++
lib/librte_eventdev/rte_eventmode_helper.h | 241 +++
.../rte_eventmode_helper_internal.h | 144 ++
lib/librte_eventdev/rte_eventmode_helper_prints.c | 223 +++
17 files changed, 4161 insertions(+), 2 deletions(-)
create mode 100644 examples/l2fwd-event/Makefile
create mode 100644 examples/l2fwd-event/l2fwd_common.h
create mode 100644 examples/l2fwd-event/l2fwd_worker.c
create mode 100644 examples/l2fwd-event/l2fwd_worker.h
create mode 100644 examples/l2fwd-event/main.c
create mode 100644 examples/l2fwd-event/meson.build
create mode 100644 lib/librte_eventdev/rte_eventmode_helper.c
create mode 100644 lib/librte_eventdev/rte_eventmode_helper.h
create mode 100644 lib/librte_eventdev/rte_eventmode_helper_internal.h
create mode 100644 lib/librte_eventdev/rte_eventmode_helper_prints.c
--
2.7.4
More information about the dev
mailing list