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 A98AA43268; Thu, 2 Nov 2023 04:05:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 593BE42DC7; Thu, 2 Nov 2023 04:04:39 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id DE85240284 for ; Thu, 2 Nov 2023 04:04:32 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2352320B74C5; Wed, 1 Nov 2023 20:04:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2352320B74C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1698894271; bh=s0fBiowJzXX7bl0KOiocMQU5PJHIAyTsyVoZB7+0rTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fqklHaQ5Evv7L7XJH6Z1PPetVAUrXXSZUbu0uYEU0eNMuGLgmj0QqN8xQkCFTi6CH OX9yTpe0cOsElOnt/f+jmH+/mCGAoNvFbz52K/5PE+2tRbWDGdSvwIkvHZYqO+Y1HG +abujju76ziYShS1sogD8qumDF3a6W4Hv2aSUfn8= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , David Hunt , Honnappa Nagarahalli , Jerin Jacob , Konstantin Ananyev , Sameh Gobriel , Sunil Kumar Kori , Vladimir Medvedkin , Yipeng Wang , Tyler Retzlaff Subject: [PATCH 5/5] stack: use rte atomic thread fence Date: Wed, 1 Nov 2023 20:04:25 -0700 Message-Id: <1698894265-22963-6-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1698894265-22963-1-git-send-email-roretzla@linux.microsoft.com> References: <1698894265-22963-1-git-send-email-roretzla@linux.microsoft.com> 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 Use __rte_atomic_thread_fence instead of directly using __atomic_thread_fence builtin gcc intrinsic Signed-off-by: Tyler Retzlaff --- lib/stack/rte_stack_lf_c11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stack/rte_stack_lf_c11.h b/lib/stack/rte_stack_lf_c11.h index 9cb6998..0f86434 100644 --- a/lib/stack/rte_stack_lf_c11.h +++ b/lib/stack/rte_stack_lf_c11.h @@ -110,7 +110,7 @@ * elements are properly ordered with respect to the head * pointer read. */ - __atomic_thread_fence(rte_memory_order_acquire); + __rte_atomic_thread_fence(rte_memory_order_acquire); rte_prefetch0(old_head.top); -- 1.8.3.1