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 A04B5A054F; Wed, 1 Jun 2022 00:49:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 811BC40A84; Wed, 1 Jun 2022 00:49:12 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 8C27C40150 for ; Wed, 1 Jun 2022 00:49:10 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id q18so42873pln.12 for ; Tue, 31 May 2022 15:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KE0xQ5HmNQ2LMsXTihzWXw4wHcCd5FEez7CrvdZc6CM=; b=Ow41FX8V9rGOoqKkk/GP2awF39qYtB6cO8UBLGGB6c04nJN3UxUMLKfvZWkf15Jr8Z oBFp2U+7C/5kz/yy836Ywc4H5Ztq5dbmunxLxYJ5d+0iAuxeXp3a2QYauoY7pwN7nrU3 y3KuFKdNR2pwComar79qi9bZVm1cJNX+1yYqC9HyKmOP415UzjUDyh4FxpHegpnxu8Vp DSFve8mfuBTqM+TOTD4D+YXXnew7TdNilpfash9p5WXvfJPDXi/U58hpbhDFoNUBITVa iptNKHez6mfx7CPg4dsxckIwRKyiwCJxYWr2ODkMIsxm4L7MRZ2ManGz9OXRjvHy2BTg pJEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KE0xQ5HmNQ2LMsXTihzWXw4wHcCd5FEez7CrvdZc6CM=; b=RqcPnEhjkF5GScnhpC8W1AjpuNzDcch7DAEk4XWpSi7KisQH4q/zBfSICi822dRTck Lf3efpOV6morlqqyJOou/IjpviGX927/Y8LcyNJ/OVSuauBldd/X6d+23Vtvk3vaNf6w xkTHzl3qSczzNWai4vOaloCcyEAi2OCyMq2zrabIWvCnpGm1dZAH9OaQVXVa3wmVUZog r5qIAV81bIixd/yundvR9uhdoBlsW3HUSy9zZfmseVaz6C/TIfu1J0GY5m3QFIIY0Wzh rGgxJZHOMNqpyoeQCKlY2aIBBTfuIBVy0R0e8kfjh+bxhHDys8CDlCY7GpDg85jVEkhO zs2g== X-Gm-Message-State: AOAM530bZWrmhVOR5DxRZ6sdOdxGYxy4HGm5X7rt/xR4MbQkbfPF+Pv9 d6R0VCKuRQXBF8gUvTorBvs6cw== X-Google-Smtp-Source: ABdhPJzgzbIKdr+dJdoK4oIyi8NllW5T4d0HgcP2mq+pv7+onNhBUeiqjhCaPVbWWWbzP04U/pBM+Q== X-Received: by 2002:a17:90b:3b4c:b0:1e0:2c34:fbe8 with SMTP id ot12-20020a17090b3b4c00b001e02c34fbe8mr31352343pjb.70.1654037349695; Tue, 31 May 2022 15:49:09 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id ik16-20020a170902ab1000b001635b86a790sm71960plb.44.2022.05.31.15.49.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 15:49:09 -0700 (PDT) Date: Tue, 31 May 2022 15:49:07 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: Thomas Monjalon , David Marchand , , , , , , , , Chengwen Feng , Ola Liljedahl Subject: Re: [PATCH v9] eal: add seqlock Message-ID: <20220531154907.399ca139@hermes.local> In-Reply-To: <20220523142346.366902-1-mattias.ronnblom@ericsson.com> References: <20220523113111.366599-1-mattias.ronnblom@ericsson.com> <20220523142346.366902-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 23 May 2022 16:23:46 +0200 Mattias R=C3=B6nnblom wrote: > + > + /* make sure the data loads happens before the sn load */ > + rte_atomic_thread_fence(__ATOMIC_ACQUIRE); Why mix __atomic builtin with rte_atomic? Instead: __atomic_thread_fence(__ATOMIC_ACQUIRE);