Skip to content

ring C11 library fix and optimization

Gavin Hu dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Changes in v1 from the cover letter

Update the ring C11 library including the following changes:
1) On relaxed ordering platforms(like Arm64,PPPC), in ring C11 implementation, loading head and tail might be reodered, this makes CAS(compare and retry the flow if the head is outdated) not working as expected, the fix is to ensure the head is read before the tail, leaving no chances of the combination of outdated head and new tail.
2) With the above memory fence introduced, some loading can be relaxed.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ring: keep the deterministic order allowing retry to worklib/librte_ring/rte_ring_c11_mem.h+6 -00 replies
2/2ring: relaxed ordering for load and store the headlib/librte_ring/rte_ring_c11_mem.h+4 -40 replies

Reviews trailers per patch

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

PatchHonnappa NagarahalliSteve CapperOla Liljedahl
1/2R-b R-b R-b
2/2R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/2] ring C11 library fix and optimization

V1:
Update the ring C11 library including the following changes:
1) On relaxed ordering platforms(like Arm64,PPPC), in ring C11 implementation, loading head and tail might be reodered, this makes CAS(compare and retry the flow if the head is outdated) not working as expected, the fix is to ensure the head is read before the tail, leaving no chances of the combination of outdated head and new tail.
2) With the above memory fence introduced, some loading can be relaxed.

Gavin Hu (2):
ring: keep the deterministic order allowing retry to work
ring: relaxed ordering for load and store the head

 lib/librte_ring/rte_ring_c11_mem.h | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
Signature · 1 line
2.7.4