DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/5] create event rings type
@ 2017-06-07 13:36 Bruce Richardson
  2017-06-07 13:36 ` [dpdk-dev] [PATCH 1/5] ring: allow rings with non power-of-2 sizes Bruce Richardson
                   ` (5 more replies)
  0 siblings, 6 replies; 28+ messages in thread
From: Bruce Richardson @ 2017-06-07 13:36 UTC (permalink / raw)
  To: dev; +Cc: olivier.matz, jerin.jacob, Bruce Richardson

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.

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/event_ring.h                | 185 ----------------
 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         | 312 +++++++++++++++++++++++++++
 lib/librte_eventdev/rte_eventdev_version.map |   9 +
 lib/librte_ring/rte_ring.c                   |  26 ++-
 lib/librte_ring/rte_ring.h                   |  88 +++++---
 test/test/Makefile                           |   1 +
 test/test/test_event_ring.c                  | 275 +++++++++++++++++++++++
 test/test/test_ring.c                        |  71 ++++++
 16 files changed, 1020 insertions(+), 262 deletions(-)
 delete mode 100644 drivers/event/sw/event_ring.h
 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

-- 
2.9.4

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2017-07-04  5:36 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07 13:36 [dpdk-dev] [PATCH 0/5] create event rings type Bruce Richardson
2017-06-07 13:36 ` [dpdk-dev] [PATCH 1/5] ring: allow rings with non power-of-2 sizes Bruce Richardson
2017-06-30  9:40   ` Olivier Matz
2017-06-30 11:32     ` Bruce Richardson
2017-06-30 12:24       ` Olivier Matz
2017-06-30 13:59         ` Bruce Richardson
2017-06-07 13:36 ` [dpdk-dev] [PATCH 2/5] test/test: add unit tests for exact size rings Bruce Richardson
2017-06-30  9:42   ` Olivier Matz
2017-06-07 13:36 ` [dpdk-dev] [PATCH 3/5] eventdev: add ring structure for events Bruce Richardson
2017-06-12  5:15   ` Jerin Jacob
2017-06-12  8:53     ` Bruce Richardson
2017-06-30 13:24     ` Bruce Richardson
2017-06-07 13:36 ` [dpdk-dev] [PATCH 4/5] test/test: add auto-tests for event ring functions Bruce Richardson
2017-06-07 13:36 ` [dpdk-dev] [PATCH 5/5] event/sw: change worker rings to standard event rings Bruce Richardson
2017-06-30 15:06 ` [dpdk-dev] [PATCH v2 0/5] create event rings type Bruce Richardson
2017-06-30 15:06   ` [dpdk-dev] [PATCH v2 1/5] ring: allow rings with non power-of-2 sizes Bruce Richardson
2017-07-03  8:46     ` Olivier Matz
2017-06-30 15:06   ` [dpdk-dev] [PATCH v2 2/5] test/test: add unit tests for exact size rings Bruce Richardson
2017-07-03  8:47     ` Olivier Matz
2017-06-30 15:06   ` [dpdk-dev] [PATCH v2 3/5] eventdev: add ring structure for events Bruce Richardson
2017-07-03  9:52     ` Van Haaren, Harry
2017-06-30 15:06   ` [dpdk-dev] [PATCH v2 4/5] test/test: add auto-tests for event ring functions Bruce Richardson
2017-07-03 12:30     ` Van Haaren, Harry
2017-06-30 15:06   ` [dpdk-dev] [PATCH v2 5/5] event/sw: change worker rings to standard event rings Bruce Richardson
2017-07-03 12:28     ` Van Haaren, Harry
2017-07-03 12:44       ` Jerin Jacob
2017-07-03 13:01         ` Van Haaren, Harry
2017-07-04  5:36           ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).