Re: [dpdk-dev] [RFC PATCH v1 0/5] add new API for wait until scheme
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-09-02 15:22:21
From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-09-02 15:22:21
On Thu, 2 Sep 2021 13:32:48 +0800 Feifei Wang [off-list ref] wrote:
Add new API for wait_until scheme, and apply this new API into lib to replace rte_pause. Feifei Wang (5): eal: add new API for wait until scheme eal: use wait until scheme for read pflock eal: use wait until scheme for mcslock lib/bpf: use wait until scheme for Rx/Tx iteration lib/distributor: use wait until scheme lib/bpf/bpf_pkt.c | 11 +- lib/distributor/rte_distributor_single.c | 10 +- lib/eal/arm/include/rte_pause_64.h | 271 ++++++++++++++++---- lib/eal/include/generic/rte_mcslock.h | 9 +- lib/eal/include/generic/rte_pause.h | 309 +++++++++++++++++++++++ lib/eal/include/generic/rte_pflock.h | 5 +- 6 files changed, 543 insertions(+), 72 deletions(-)
Since these are all inline, would it be possible to make this a macro and have the caller pass a condition function? Look at Linux wait_event() for an example of that.