Skip to content

add new helper for wait scheme

Feifei Wang dpdk-dev 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest5 patches 5 repliesIn review
  2. v85 patches 11 repliesSuperseded
  3. v75 patches 8 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v64 patches4 repliesSuperseded
v55 patches11 repliesSuperseded
v45 patches8 repliesSuperseded
v3 RFC5 patches9 repliesSuperseded
v2 RFC5 patches2 repliesSuperseded
v1 RFC5 patches2 repliesSuperseded

Changes in v9 from the cover letter

1. rename 'wait_event' as 'wait_until' (David)
2. change commit message (David)

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5eal: add a new generic helper for wait schemelib/eal/arm/include/rte_pause_64.h lib/eal/include/generic/rte_pause.h+155 -760 replies
2/5pflock: use wait until scheme for read pflocklib/eal/include/generic/rte_pflock.h+1 -32 replies
3/5mcslock: use wait until scheme for mcslocklib/eal/include/generic/rte_mcslock.h+3 -20 replies
4/5bpf: use wait until scheme for Rx/Tx iterationlib/bpf/bpf_pkt.c+3 -60 replies
5/5distributor: use wait until schemelib/distributor/rte_distributor_single.c+4 -62 replies

Reviews trailers per patch

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

PatchRuifeng WangKonstantin AnanyevJerin Jacob
1/5R-b A-b A-b
2/5R-b A-b
3/5R-b A-b
4/5R-b A-b
5/5R-b A-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 v9 thread

Cover letter [dpdk-dev] [PATCH v9 0/5] add new helper for wait scheme

Add new helper for wait scheme, and apply this new definitions into lib to replace rte_pause.

v2:
1. use macro to create new wait scheme (Stephen)

v3:
1. delete unnecessary bug fix in bpf (Konstantin)

v4:
1. put size into the macro body (Konstantin)
2. replace assert with BUILD_BUG_ON (Stephen)
3. delete unnecessary compiler barrier for bpf (Konstantin)

v5:
1. 'size' is not the parameter (Konstantin)
2. put () around macro parameters (Konstantin)
3. fix some original typo issue (Jerin)
4. swap 'rte_wait_event' parameter location (Jerin)
5. add new macro '__LOAD_EXC'
6. delete 'undef' to prevent compilation warning

v6:
1. fix patch style check warning
2. delete 'bpf' patch due to 'const' limit

v7:
1. add __RTE_ARM to to fix the namespace (Jerin)
2. use 'uintptr_t *' in mcslock for different architecture(32/64) (Mattias)
3. add a new pointer 'next' in mcslock to fix compiler issue
4. add bpf patch and use 'uintptr_t' to fix const discard warning (Konstantin)

v8:
1. add __LOAD_EXC_128 (Jerin)
2. use BUILD_BUG_ON to replace assert (Jerin)

v9:
1. rename 'wait_event' as 'wait_until' (David)
2. change commit message (David)

Feifei Wang (5):
eal: add a new generic helper for wait scheme
pflock: use wait until scheme for read pflock
mcslock: use wait until scheme for mcslock
bpf: use wait until scheme for Rx/Tx iteration
distributor: use wait until scheme

 lib/bpf/bpf_pkt.c                        |   9 +-
 lib/distributor/rte_distributor_single.c |  10 +-
 lib/eal/arm/include/rte_pause_64.h       | 202 ++++++++++++++---------
 lib/eal/include/generic/rte_mcslock.h    |   5 +-
 lib/eal/include/generic/rte_pause.h      |  29 ++++
 lib/eal/include/generic/rte_pflock.h     |   4 +-
 6 files changed, 166 insertions(+), 93 deletions(-)
Signature · 1 line
2.25.1