Skip to content

create event rings type

Bruce Richardson dpdk-dev 2 versions – Applied

Status from this message: Applied this series to dpdk-next-eventdev/master after squashing

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 8 repliesApplied
  2. v15 patches 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5ring: allow rings with non power-of-2 sizeslib/librte_ring/rte_ring.c lib/librte_ring/rte_ring.h+79 -361 reply
2/5test/test: add unit tests for exact size ringstest/test/test_ring.c+74 -01 reply
3/5eventdev: add ring structure for eventslib/Makefile lib/librte_eventdev/Makefile lib/librte_eventdev/rte_event_ring.c +2 more+527 -11 reply
4/5test/test: add auto-tests for event ring functionstest/test/Makefile test/test/test_event_ring.c+277 -01 reply
5/5event/sw: change worker rings to standard event ringsdrivers/event/sw/sw_evdev.c drivers/event/sw/sw_evdev.h drivers/event/sw/sw_evdev_scheduler.c +2 more+64 -404 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchOlivier MatzHarry van Haaren
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] create event rings type

Following on from the refactoring of the rte_rings code done in the 17.05 release, it becomes relatively easy to create new ring implementations for data types other than "void *". The first candidate for this is the rte_event type, which being 16B in size, is small enough to be passed around directly rather than via pointer.

The SW eventdev implementation already defines an event ring implementation and this can be replaced by a more general implementation done in the eventdev library itself. However, feature parity between the SW eventdev implementation and a general rte_ring implementation is required, so support for rings of a defined size is added to the rte_ring library first.

v2: minor adjustments made following review feedback.

Bruce Richardson (5):
ring: allow rings with non power-of-2 sizes test/test: add unit tests for exact size rings
eventdev: add ring structure for events test/test: add auto-tests for event ring functions event/sw: change worker rings to standard event rings

 drivers/event/sw/sw_evdev.c                  |  38 ++--
 drivers/event/sw/sw_evdev.h                  |   4 +-
 drivers/event/sw/sw_evdev_scheduler.c        |  19 +-
 drivers/event/sw/sw_evdev_worker.c           |  28 ++-
 drivers/event/sw/sw_evdev_xstats.c           |  15 +-
 lib/Makefile                                 |   2 +-
 lib/librte_eventdev/Makefile                 |   2 +
 lib/librte_eventdev/rte_event_ring.c         | 207 ++++++++++++++++++
 lib/librte_eventdev/rte_event_ring.h         | 308 +++++++++++++++++++++++++++
 lib/librte_eventdev/rte_eventdev_version.map |   9 +
 lib/librte_ring/rte_ring.c                   |  26 ++-
 lib/librte_ring/rte_ring.h                   |  89 +++++---
 test/test/Makefile                           |   1 +
 test/test/test_event_ring.c                  | 275 ++++++++++++++++++++++++
 test/test/test_ring.c                        |  74 +++++++
 15 files changed, 1020 insertions(+), 77 deletions(-)
 create mode 100644 lib/librte_eventdev/rte_event_ring.c
 create mode 100644 lib/librte_eventdev/rte_event_ring.h
 create mode 100644 test/test/test_event_ring.c
Signature · 1 line
2.13.0