[dpdk-dev] [PATCH v3 00/10] example/l2fwd-event: introduce l2fwd-event example

pbhagavatula at marvell.com pbhagavatula at marvell.com
Thu Sep 19 12:13:36 CEST 2019

From: Pavan Nikhilesh <pbhagavatula at marvell.com>

This patchset adds a new application to demonstrate the usage of event
mode. The poll mode is also available to help with the transition.

The following new command line parameters are added:
 --mode: Dictates the mode of operation either poll or event.
 --eventq_sync: Dictates event synchronization mode either atomic or

Based on event device capability the configuration is done as follows:
    - A single event device is enabled.
    - The number of event ports is equal to the number of worker
      cores enabled in the core mask. Additional event ports might
      be configured based on Rx/Tx adapter capability.
    - The number of event queues is equal to the number of ethernet
      ports. If Tx adapter doesn't have internal port capability then
      an additional single link event queue is used to enqueue events
      to Tx adapter.
    - Each event port is linked to all existing event queues.
    - Dedicated Rx/Tx adapters for each Ethernet port.

v3 Changes:
- Remove unwanted change to example/l2fwd.
- fix checkpatch issue

v2 Changes:
- Remove global variables.
- Split patches to make reviews friendlier.
- Split datapath based on eventdev capability.

checkpatch reports for v08/10 is intended

Pavan Nikhilesh (5):
  examples/l2fwd-event: add infra to split eventdev framework
  examples/l2fwd-event: add eventdev queue and port setup
  examples/l2fwd-event: add event Rx/Tx adapter setup
  examples/l2fwd-event: add eventdev main loop
  examples/l2fwd-event: add graceful teardown

Sunil Kumar Kori (5):
  examples/l2fwd-event: add default poll mode routines
  examples/l2fwd-event: add infra for eventdev
  examples/l2fwd-event: add eth port setup for eventdev
  examples/l2fwd-event: add service core setup
  doc: add application usage guide for l2fwd-event

 MAINTAINERS                                   |   5 +
 doc/guides/sample_app_ug/index.rst            |   1 +
 doc/guides/sample_app_ug/intro.rst            |   5 +
 .../l2_forward_event_real_virtual.rst         | 799 +++++++++++++++++
 examples/Makefile                             |   1 +
 examples/l2fwd-event/Makefile                 |  60 ++
 examples/l2fwd-event/l2fwd_common.h           |  26 +
 examples/l2fwd-event/l2fwd_eventdev.c         | 536 ++++++++++++
 examples/l2fwd-event/l2fwd_eventdev.h         | 118 +++
 examples/l2fwd-event/l2fwd_eventdev_generic.c | 349 ++++++++
 .../l2fwd_eventdev_internal_port.c            | 281 ++++++
 examples/l2fwd-event/main.c                   | 804 ++++++++++++++++++
 examples/l2fwd-event/meson.build              |  15 +
 13 files changed, 3000 insertions(+)
 create mode 100644 doc/guides/sample_app_ug/l2_forward_event_real_virtual.rst
 create mode 100644 examples/l2fwd-event/Makefile
 create mode 100644 examples/l2fwd-event/l2fwd_common.h
 create mode 100644 examples/l2fwd-event/l2fwd_eventdev.c
 create mode 100644 examples/l2fwd-event/l2fwd_eventdev.h
 create mode 100644 examples/l2fwd-event/l2fwd_eventdev_generic.c
 create mode 100644 examples/l2fwd-event/l2fwd_eventdev_internal_port.c
 create mode 100644 examples/l2fwd-event/main.c
 create mode 100644 examples/l2fwd-event/meson.build


More information about the dev mailing list