[dpdk-dev] [PATCH] examples/l3fwd: Eventdev mode support for packet I/O

Sunil Kumar Kori skori at marvell.com
Fri Sep 6 10:04:27 CEST 2019


Patchset adds support for eventdev mode for packet enqueue/dequeue.

Following is the summary of newly added features:
1. Exposing new command line parameters.
 - mode: It dictates the mode of operation i.e. poll or eventdev.
 - eventq_sync: It dictates eventq synchronization method i.e.
                atomic or ordered. Currently only atomic and
                ordered methods are implemented.

2. Default application will be working into poll mode.
3. All the eventdev resources are initialized with default values.
        no configuration are exposed to the user.

        Following is the summary of default configuration:
         - Single instance of eventdev supported.
         - Number of event ports are equal to number of worker thread.
         - Number of event queue are equal number of ethernet ports.
         - Each event port is linked to all existing event queues.
         - Dedicated Rx adapter for each Ethernet port and all Ethernet
                port Rx queues are added to respective Rx adapter.
         - Dedicated Tx adapter for each Ethernet port and all Ethernet
                port Rx queues are added to respective Rx adapter.

Sunil Kumar Kori (1):
  examples/l3fwd: add support for eventdev mode

 examples/l3fwd/Makefile         |   2 +-
 examples/l3fwd/l3fwd.h          |  21 +-
 examples/l3fwd/l3fwd_common.h   |  10 +
 examples/l3fwd/l3fwd_em.c       |  69 +++++
 examples/l3fwd/l3fwd_eventdev.c | 593 ++++++++++++++++++++++++++++++++++++++++
 examples/l3fwd/l3fwd_eventdev.h |  85 ++++++
 examples/l3fwd/l3fwd_lpm.c      |  71 +++++
 examples/l3fwd/main.c           |  46 +++-
 8 files changed, 887 insertions(+), 10 deletions(-)
 create mode 100644 examples/l3fwd/l3fwd_eventdev.c
 create mode 100644 examples/l3fwd/l3fwd_eventdev.h

-- 
1.8.3.1



More information about the dev mailing list