net.ibm.com; Honnappa
> Nagarahalli ; nd ;
> gaetan.ri...@6wind.com
> Subject: Re: [dpdk-dev] [RFC 1/5] eal: add the APIs to wait until equal
>
> 01/07/2019 09:16, Gavin Hu (Arm Technology China):
> > From: Stephen Hemminger
> > > Gavin Hu wrote:
linux.vnet.ibm.com; Honnappa
> Nagarahalli ; nd
> Subject: RE: [dpdk-dev] [RFC 1/5] eal: add the APIs to wait until equal
>
> Hi Gavin,
>
> >-Original Message-
> >From: dev On Behalf Of Gavin Hu
> >Sent: Sunday, June 30, 2019 9:51 PM
> >To: dev@dpdk.
a.nagaraha...@arm.com; n...@arm.com; gavin...@arm.com
>Subject: [dpdk-dev] [RFC 1/5] eal: add the APIs to wait until equal
>
>The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling
>for a memory location to become equal to a given value'.
>
>Signed-off-by
01/07/2019 09:16, Gavin Hu (Arm Technology China):
> From: Stephen Hemminger
> > Gavin Hu wrote:
> >
> > > +#ifdef RTE_USE_WFE
> > > +#define rte_wait_until_equal_relaxed(addr, expected) do {\
[...]
> > That is a hot mess.
> > Macro's are harder to maintain and offer no benefit over inline funct
net.ibm.com; Honnappa Nagarahalli
> ; nd
> Subject: Re: [dpdk-dev] [RFC 1/5] eal: add the APIs to wait until equal
>
> On Mon, 1 Jul 2019 00:21:12 +0800
> Gavin Hu wrote:
>
> > +#ifdef RTE_USE_WFE
> > +#define rte_wait_until_equal_relaxed(addr
On Mon, 1 Jul 2019 00:21:12 +0800
Gavin Hu wrote:
> +#ifdef RTE_USE_WFE
> +#define rte_wait_until_equal_relaxed(addr, expected) do {\
> + typeof(*addr) tmp; \
> + if (__builtin_constant_p((expected))) \
> + do { \
> + if (s
The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling
for a memory location to become equal to a given value'.
Signed-off-by: Gavin Hu
Reviewed-by: Ruifeng Wang
Reviewed-by: Steve Capper
Reviewed-by: Ola Liljedahl
Reviewed-by: Honnappa Nagarahalli
---
.../common/include/ar
7 matches
Mail list logo