[dpdk-dev] [PATCH v2 1/5] lib/stack: fix inconsistent weak / strong cas

David Marchand david.marchand at redhat.com
Mon Sep 28 12:22:34 CEST 2020


On Fri, Sep 25, 2020 at 7:44 PM Steven Lariau <steven.lariau at arm.com> wrote:
>
> Fix cmpexchange usage of weak / strong.
> The generated code is the same on x86 and ARM (there is no weak
> cmpexchange), but the old usage was inconsistent.
> For push and pop update size, weak is used because cmpexchange is inside
> a loop.
> For pop update root, strong is used even though cmpexchange is inside a
> loop, because there may be a lot of operations to do in a loop iteration
> (locate the new head).

Is this patch backport material?

Thanks.


-- 
David Marchand



More information about the dev mailing list