On Fri, Apr 16, 2021 at 08:34:29AM +0200, David Marchand wrote: > On Mon, Apr 12, 2021 at 10:29 AM Stanislaw Kardach <k...@semihalf.com> wrote: > > > > The lock-free stack implementation (RTE_STACK_F_LF) is supported only on a > > subset of platforms, namely x86_64 and arm64. Platforms supporting 128b > > atomics > > have to opt-in to a generic or C11 implementations. All other platforms use > > a > > stubbed implementation for push/pop operations which are basically NOPs. > > However rte_stack_create() will not fail and application can proceed > > assuming > > it has a working lock-free stack. > > Did you actually hit this issue or is this only theoretical? > I can only think of ppc64 displaying such behavior. > I actually hit this issue while working on a RISC-V port. My reasoning here is that sooner or later someone else will stumble upon this, either on ppc64 or while trying to port to some new platform. It is also a really nasty limitation do debug given the silent nature of the failure.
> > -- > David Marchand > -- Best Regards, Stanislaw Kardach