[dpdk-dev] [RFC PATCH v1 0/5] add new API for wait until scheme
Stephen Hemminger
stephen at networkplumber.org
Thu Sep 2 17:22:08 CEST 2021
On Thu, 2 Sep 2021 13:32:48 +0800
Feifei Wang <feifei.wang2 at arm.com> 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.
More information about the dev
mailing list