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 8F2A743215; Fri, 27 Oct 2023 15:01:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E654402E4; Fri, 27 Oct 2023 15:01:21 +0200 (CEST) Received: from forward501c.mail.yandex.net (forward501c.mail.yandex.net [178.154.239.209]) by mails.dpdk.org (Postfix) with ESMTP id 9C43E402B9 for ; Fri, 27 Oct 2023 15:01:19 +0200 (CEST) Received: from mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:c008:0:640:847d:0]) by forward501c.mail.yandex.net (Yandex) with ESMTP id DCC3360ACD; Fri, 27 Oct 2023 16:01:18 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id A1RqJSKDTW20-LkGKy8OW; Fri, 27 Oct 2023 16:01:17 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1698411677; bh=vtN4UsTJV+ibIiSyqPPJmSgJpZa9Z28K5So8Rqv8NXw=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=fVLtXhb/7EuSHY9tXvcjflc0QGv8Y8/wYkI5XlmLkyvskxxRKVh7u26YDEbzDY5qq H+rEXe/2Rt+/3Qg2l4WXSmXWdUyJQoBXp9mRiHIClp1WEzjcYGRMwDytTrQr9t/uih 68/zQFGjvXuf3DHXeOLzS1r6W9ynWvkFDH3rYLvU= Authentication-Results: mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <93540150-acce-4e97-b43e-514ed358f68c@yandex.ru> Date: Fri, 27 Oct 2023 14:01:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 08/19] mempool: use rte optional stdatomic API Content-Language: en-US, ru-RU To: Tyler Retzlaff , dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chenbo Xia , Ciara Power , David Christensen , David Hunt , Dmitry Kozlyuk , Dmitry Malloy , Elena Agostini , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Harry van Haaren , Honnappa Nagarahalli , Jerin Jacob , Matan Azrad , Maxime Coquelin , Narcisa Ana Maria Vasile , Nicolas Chautru , Olivier Matz , Ori Kam , Pallavi Kadam , Pavan Nikhilesh , Reshma Pattan , Sameh Gobriel , Shijith Thotton , Sivaprasad Tummala , Stephen Hemminger , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang References: <1697497745-20664-1-git-send-email-roretzla@linux.microsoft.com> <1698280314-25861-1-git-send-email-roretzla@linux.microsoft.com> <1698280314-25861-9-git-send-email-roretzla@linux.microsoft.com> From: Konstantin Ananyev In-Reply-To: <1698280314-25861-9-git-send-email-roretzla@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 26.10.2023 01:31, Tyler Retzlaff пишет: > Replace the use of gcc builtin __atomic_xxx intrinsics with > corresponding rte_atomic_xxx optional stdatomic API > > Signed-off-by: Tyler Retzlaff > --- > lib/mempool/rte_mempool.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h > index f70bf36..df87cd2 100644 > --- a/lib/mempool/rte_mempool.h > +++ b/lib/mempool/rte_mempool.h > @@ -327,8 +327,8 @@ struct rte_mempool { > if (likely(__lcore_id < RTE_MAX_LCORE)) \ > (mp)->stats[__lcore_id].name += (n); \ > else \ > - __atomic_fetch_add(&((mp)->stats[RTE_MAX_LCORE].name), \ > - (n), __ATOMIC_RELAXED); \ > + rte_atomic_fetch_add_explicit(&((mp)->stats[RTE_MAX_LCORE].name), \ > + (n), rte_memory_order_relaxed); \ > } while (0) > #else > #define RTE_MEMPOOL_STAT_ADD(mp, name, n) do {} while (0) Acked-by: Konstantin Ananyev