[dpdk-dev] [PATCH 0/2] add implicit release disable capability

Gage Eads gage.eads at intel.com
Thu Nov 30 05:20:34 CET 2017


This patch set introduces an event device capability for disabling implicit
release -- in which rte_event_dequeue_burst() releases any unreleased,
previously dequeued events -- on a per-port basis. The port configuration
struct is likewise extended with a disable_implicit_release option, for PMDs
that support the capability. If the option is set for a port, the application
is responsible for releasing the port's dequeued events (either with
RTE_EVENT_OP_RELEASE or RTE_EVENT_OP_FORWARD).

This behavior was previously discussed
(http://dpdk.org/ml/archives/dev/2017-November/081037.html) as a way to avoid
flow migration problems when using eventdev with look-aside hardware (such as
cryptodev). For instance, if each worker puts dequeued events in a per-worker
crypto request queue and periodically polls the response queue to forward the
packets, it shouldn't release the events until the crypto operation completes.
By disabling the implicit release, it can dequeue further events and process
them while the crypto operation(s) execute in parallel.

The only PMD that supports this capability is the sw PMD. For all PMDs, the
default port configuration is implicit releases enabled.

The second patch in the series isn't directly related to implicit release,
but the code changes depend on the first patch.

Gage Eads (2):
  eventdev: add implicit release disable capability
  event/sw: simplify credit scheme

 drivers/event/dpaa2/dpaa2_eventdev.c       |  2 ++
 drivers/event/octeontx/ssovf_evdev.c       |  1 +
 drivers/event/skeleton/skeleton_eventdev.c |  1 +
 drivers/event/sw/sw_evdev.c                | 10 +++++---
 drivers/event/sw/sw_evdev.h                |  1 +
 drivers/event/sw/sw_evdev_worker.c         | 38 +++++++++++++++---------------
 examples/eventdev_pipeline_sw_pmd/main.c   | 24 ++++++++++++++++++-
 lib/librte_eventdev/rte_eventdev.c         |  9 +++++++
 lib/librte_eventdev/rte_eventdev.h         | 23 +++++++++++++++---
 test/test/test_eventdev.c                  |  9 +++++++
 test/test/test_eventdev_sw.c               | 20 ++++++++++++++--
 11 files changed, 110 insertions(+), 28 deletions(-)

-- 
2.7.4



More information about the dev mailing list