Skip to content

Improve service stop support

Gage Eads dpdk-dev 3 versions – Applied

Status from this message: Applied series to dpdk-next-eventdev/master. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 3 repliesApplied

Changes in v3 from the cover letter

- Move function to EXPERIMENTAL block and add experimental tags
- Fix typo in function documentation

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2service: add mechanism for quiescing a servicelib/librte_eal/common/include/rte_service.h lib/librte_eal/common/rte_service.c lib/librte_eal/rte_eal_version.map +1 more+92 -40 replies
2/2event/sw: support device stop flush callbackdrivers/event/sw/sw_evdev.c drivers/event/sw/sw_evdev_selftest.c+192 -30 replies

Reviews trailers per patch

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

PatchHarry van Haaren
1/2A-b
2/2A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] Improve service stop support

Existing service functions allow us to stop a service, but doing so doesn't guarantee that the service has finished running on a service core. This patch set introduces a function, rte_service_may_be_active(), to check whether a stopped service is truly stopped.

This is needed for flows that modify a resource that the service is using; for example when stopping an eventdev, any event adapters and/or scheduler service need to be quiesced first.

This patch set also adds support for the event sw PMD's device stop flush callback, which relies on this new mechanism to ensure that the scheduler service is no longer active.

v2:
- Move function to DPDK_18.08 block in rte_eal_version.map
- Fix signed vs. unsigned comparison compiler warning

v3:
- Move function to EXPERIMENTAL block and add experimental tags
- Fix typo in function documentation

Gage Eads (2):
service: add mechanism for quiescing a service
event/sw: support device stop flush callback

 drivers/event/sw/sw_evdev.c                 | 114 +++++++++++++++++++++++++++-
 drivers/event/sw/sw_evdev_selftest.c        |  81 +++++++++++++++++++-
 lib/librte_eal/common/include/rte_service.h |  20 +++++
 lib/librte_eal/common/rte_service.c         |  32 +++++++-
 lib/librte_eal/rte_eal_version.map          |   1 +
 test/test/test_service_cores.c              |  43 +++++++++++
 6 files changed, 284 insertions(+), 7 deletions(-)
Signature · 1 line
2.13.6