create event rings type
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
- v2 Latest5 patches 8 repliesApplied
- v15 patches 8 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | ring: allow rings with non power-of-2 sizeslib/ lib/ | +79 | 1 reply | |
| 2/5 | test/test: add unit tests for exact size ringstest/ | +74 | 1 reply | |
| 3/5 | eventdev: add ring structure for eventslib/ lib/ lib/ +2 more | +527 | 1 reply | |
| 4/5 | test/test: add auto-tests for event ring functionstest/ test/ | +277 | 1 reply | |
| 5/5 | event/sw: change worker rings to standard event ringsdrivers/ drivers/ drivers/ +2 more | +64 | 4 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Olivier Matz | Harry van Haaren |
|---|---|---|
| 1/5 | A-b | |
| 2/5 | A-b | |
| 3/5 | A-b | |
| 4/5 | A-b | |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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