adding eventmode helper library
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest39 patches 29 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/39 | examples/l2fwd-event: create copy of l2fwdexamples/ examples/ examples/ +1 more | +819 | 0 replies | |
| 2/39 | examples/l2fwd-event: move macros to common headerexamples/ examples/ | +27 | 0 replies | |
| 3/39 | examples/l2fwd-event: move structures to common headerexamples/ examples/ | +12 | 0 replies | |
| 4/39 | examples/l2fwd-event: move global vars to common headerexamples/ examples/ | +43 | 3 replies | |
| 5/39 | examples/l2fwd-event: move dataplane code to new fileexamples/ examples/ examples/ +2 more | +244 | 0 replies | |
| 6/39 | examples/l2fwd-event: remove unused header includesexamples/ | +0 | 0 replies | |
| 7/39 | examples/l2fwd-event: move drain buffers to new functionexamples/ | +20 | 0 replies | |
| 8/39 | examples/l2fwd-event: optimize check for master coreexamples/ | +5 | 0 replies | |
| 9/39 | examples/l2fwd-event: move periodic tasks to new funcexamples/ examples/ | +52 | 0 replies | |
| 10/39 | examples/l2fwd-event: do timer updates only on masterexamples/ | +13 | 0 replies | |
| 11/39 | examples/l2fwd-event: move pkt send code to a new funcexamples/ | +14 | 0 replies | |
| 12/39 | examples/l2fwd-event: use fprintf in usage printexamples/ | +3 | 0 replies | |
| 13/39 | examples/l2fwd-event: improvements to the usage printexamples/ | +14 | 0 replies | |
| 14/39 | eventdev: add files for eventmode helperlib/ lib/ lib/ +2 more | +33 | 1 reply | |
| 15/39 | eventdev: add routines for logging eventmode helperconfig/ lib/ lib/ +1 more | +32 | 2 replies | |
| 16/39 | eventdev: add eventmode CL options frameworklib/ lib/ lib/ | +181 | 3 replies | |
| 17/39 | eventdev: allow application to set ethernet portmasklib/ lib/ | +9 | 0 replies | |
| 18/39 | eventdev: add framework for eventmode conflib/ lib/ | +21 | 2 replies | |
| 19/39 | eventdev: add common initialize routine for eventmode devslib/ lib/ lib/ | +77 | 3 replies | |
| 20/39 | eventdev: add eventdevice init for eventmodelib/ lib/ | +146 | 0 replies | |
| 21/39 | eventdev: add eventdev port-lcore linklib/ lib/ lib/ | +46 | 0 replies | |
| 22/39 | eventdev: add option to specify schedule mode for app stagelib/ lib/ | +30 | 0 replies | |
| 23/39 | eventdev: add placeholder for ethdev initlib/ | +13 | 0 replies | |
| 24/39 | eventdev: add Rx adapter init in eventmodelib/ lib/ | +150 | 2 replies | |
| 25/39 | eventdev: add routine to validate conflib/ | +33 | 2 replies | |
| 26/39 | eventdev: add default conf for event devs field in conflib/ | +67 | 0 replies | |
| 27/39 | eventdev: add default conf for Rx adapter conflib/ lib/ | +131 | 0 replies | |
| 28/39 | eventdev: add default conf for event port-lcore linklib/ lib/ | +113 | 0 replies | |
| 29/39 | eventdev: add routines to display the eventmode conflib/ lib/ lib/ +3 more | +178 | 0 replies | |
| 30/39 | eventdev: add routine to access eventmode link infolib/ lib/ lib/ | +105 | 0 replies | |
| 31/39 | eventdev: add routine to access event queue for eth Txlib/ lib/ lib/ | +75 | 0 replies | |
| 32/39 | eventdev: add routine to launch eventmode workerslib/ lib/ lib/ +1 more | +293 | 5 replies | |
| 33/39 | eventdev: add Tx adapter supportlib/ lib/ lib/ +1 more | +399 | 1 reply | |
| 34/39 | eventdev: add support for internal portslib/ lib/ lib/ +1 more | +192 | 0 replies | |
| 35/39 | eventdev: display Tx adapter conflib/ | +45 | 0 replies | |
| 36/39 | examples/l2fwd-event: add eventmode for l2fwdexamples/ examples/ examples/ +1 more | +360 | 0 replies | |
| 37/39 | examples/l2fwd-event: add eventmode workerexamples/ | +163 | 0 replies | |
| 38/39 | examples/l2fwd-event: add eventmode workerexamples/ | +218 | 0 replies | |
| 39/39 | examples/l2fwd-event: add eventmode workerexamples/ | +199 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [dpdk-dev] [PATCH 00/39] adding eventmode helper library
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
Signature · 1 line
2.7.4