Skip to content

eventdev: atomic tests to test-eventdev app

Luka Jankovic dpdk-dev 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest3 patches 1 replyIn review
  2. v93 patches 3 repliesSuperseded
  3. v82 of 3 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v7 RFC4 patches2 repliesSuperseded
v6 RFC2 patches3 repliesSuperseded
v5 RFC2 patches2 repliesSuperseded
v4 RFC1 patch1 replySuperseded
v3 RFC1 patch0 repliesSuperseded
v2 RFC1 patch2 repliesSuperseded
v1 RFC1 patch3 repliesSuperseded

Changes in v10 from the cover letter

* No changes.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3eventdev: atomic common for test-eventdev appapp/test-eventdev/evt_common.h app/test-eventdev/meson.build app/test-eventdev/test_atomic_common.c +2 more+238 -00 replies
2/3eventdev: add atomic queue test to test-evnetdev appapp/test-eventdev/meson.build app/test-eventdev/test_atomic_queue.c doc/guides/tools/img/eventdev_atomic_atq_test.svg +1 more+1915 -00 replies
3/3eventdev: add atomic atq to test-eventdev appapp/test-eventdev/meson.build app/test-eventdev/test_atomic_atq.c doc/guides/tools/img/eventdev_atomic_queue_test.svg +1 more+1985 -01 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchPavan Nikhilesh
1/3T-b
2/3T-b
3/3T-b

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

Read the v10 thread

Cover letter [PATCH v10 0/3] eventdev: atomic tests to test-eventdev app

Add atomic tests to the test-eventdev app which correspond to the order tests but use exclusively atomic queues.

The test detects if port maintenance is required, and so they are compatible with event devices such as the distributed software eventdev.

To verify atomicity, a spinlock is used for each combination of stage and flow. It is acquired whenever an event is dequeued for processing and released when processing is finished.

The tests will fail if a port attempts to acquire a lock which is already held.

Luka Jankovic (3):
eventdev: atomic common for test-eventdev app
eventdev: add atomic queue test to test-evnetdev app
eventdev: add atomic atq to test-eventdev app

 app/test-eventdev/evt_common.h                |    9 +
 app/test-eventdev/meson.build                 |    3 +
 app/test-eventdev/test_atomic_atq.c           |  220 +++
 app/test-eventdev/test_atomic_common.c        |  136 ++
 app/test-eventdev/test_atomic_common.h        |   87 +
 app/test-eventdev/test_atomic_queue.c         |  234 +++
 doc/guides/rel_notes/release_25_03.rst        |    5 +
 .../tools/img/eventdev_atomic_atq_test.svg    | 1588 +++++++++++++++
 .../tools/img/eventdev_atomic_queue_test.svg  | 1701 +++++++++++++++++
 doc/guides/tools/testeventdev.rst             |  155 ++
 10 files changed, 4138 insertions(+)
 create mode 100644 app/test-eventdev/test_atomic_atq.c
 create mode 100644 app/test-eventdev/test_atomic_common.c
 create mode 100644 app/test-eventdev/test_atomic_common.h
 create mode 100644 app/test-eventdev/test_atomic_queue.c
 create mode 100644 doc/guides/tools/img/eventdev_atomic_atq_test.svg
 create mode 100644 doc/guides/tools/img/eventdev_atomic_queue_test.svg

---
v10:
* No changes.

v9:
* Fixed incorrect patch.

v8:
* Add copyright notice.
* Update changelog.
* Prepare for merge.

v7:
* Refactor common atomic test functionality into separate common file.
* Implement atomic atq.

v6:
* Revert the use of event.u64 to mbufs as the Marvell CNXK platform assumes event.u64 to be 8-byte aligned, which causes the test to fail.
* Clarified deadlock error message.

v5:
* Updated documentation for dpdk-test-eventdev

v4:
* Fix code style issues.
* Remove unused imports.

v3:
* Use struct to avoid bit operations when accessing event u64.
* Changed __rte_always_inline to inline for processing stages.
* Introduce idle timeout constant.
* Formatting and cleanup.

v2:
* Changed to only check queue, flow combination, not port, queue, flow.
* Lock is only held when a packet is processed.
* Utilize event u64 instead of mbuf.
* General cleanup.

---
2.34.1