From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D25A9A0562 for ; Tue, 4 May 2021 08:45:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C424740147; Tue, 4 May 2021 08:45:10 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id ED1EF40147 for ; Tue, 4 May 2021 08:45:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620110708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pe1Tz3Vvcp2/9DL+58hzo8nTxAMQvw9ure0lsonQ4LA=; b=DVv+0XXNIUL/Gyhclmp9+//6oczuybA9tq6FmhYGGVSp0pyQDPEo8ENIc6NP2+Bu16aYAj 0EEsT+yAPAETR+66lVZY52nNdUPIKmBNCr3w8UVPeP+qYh8bB1ZRRjHsj43m/8vf1ebdBs pX/KI7GtK46FO21gyXTkwim+DcidBDY= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-106-yNq9E-TXMvCLhq2pJRXkkA-1; Tue, 04 May 2021 02:45:06 -0400 X-MC-Unique: yNq9E-TXMvCLhq2pJRXkkA-1 Received: by mail-vk1-f200.google.com with SMTP id k186-20020a1fa1c30000b02901deb88f03ecso1259365vke.11 for ; Mon, 03 May 2021 23:45:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pe1Tz3Vvcp2/9DL+58hzo8nTxAMQvw9ure0lsonQ4LA=; b=GcMB1QMeMMLhJ7QoQ7WZrdf8BJAVmji4k4U6HdH+e0hSszNir3HHb8sFxI0fWZR3Jz PSfphQH5MG0eKQZ46OILEbXnr7r64CTY75YnYBd2sk6LIgsr3el1m5D+tNXX6T5OsjEG 89oXjhKGqFUGcF84NHE7ooVzAl/G8VkB5qeOx7clBTzEwIKAUJgwwQX7jleZwSVWp3Sj 1jDGj+xPQz2r7Y2CARVfOYQZ1OHhsI/cO/ubsRfqvf4Hn0sjeH6sprKrnKyX9iPf3j6w If/UXdhbFe9VZ1C6v82/MbbDBnJch09sPzLDLDofIlaQU6C3DBfsdDUsrcKMPamX8LvQ 6Gzw== X-Gm-Message-State: AOAM533ATR/3ehMLtzjQI9PpuBPA1i9oCZ/brSwaGquhdvDU1+ulpAcY 2/wMDR2QFQMQo5X+KdOtTt6/j0KeLCsFTI/G6LbTCYJrsDPGKFL0AMdQesUsiNb4kq5RNzLeBrw qdFLVH5XcoAZQQea8gqVyc0M= X-Received: by 2002:a9f:368f:: with SMTP id p15mr18428873uap.41.1620110706470; Mon, 03 May 2021 23:45:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0/YpavfTOwzogPo/0yMN7RhS7kCW9s3TkgbFdslc9Tz1kgZJT0TxJH+ZNihd+eQT4iKyJ1wK7Q0LPaMxP7VU= X-Received: by 2002:a9f:368f:: with SMTP id p15mr18428868uap.41.1620110706330; Mon, 03 May 2021 23:45:06 -0700 (PDT) MIME-Version: 1.0 References: <20210412082901.652736-1-kda@semihalf.com> In-Reply-To: <20210412082901.652736-1-kda@semihalf.com> From: David Marchand Date: Tue, 4 May 2021 08:44:55 +0200 Message-ID: To: Stanislaw Kardach Cc: Olivier Matz , dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH 0/3] add lock-free stack support discovery X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Mon, Apr 12, 2021 at 10:29 AM Stanislaw Kardach 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. > > This means that among other things the stack_lf fast and perf tests will fail > as if implementation is wrong (which one can argue is). Therefore this patchset > tries to give user a way to check whether a lock_free is supported or not both > at compile time (build flag) and at runtime (ENOTSUP errno in rte_stack_create). Series applied. Thanks Stanislaw! -- David Marchand