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 A92EA43032; Fri, 11 Aug 2023 10:57:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8EAE942D3F; Fri, 11 Aug 2023 10:57:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 6D99A40E03; Fri, 11 Aug 2023 10:57:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691744221; x=1723280221; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=RWw991n68SAang73HmodoeEi+8yvI/JjFy1O4oh3x1g=; b=XQOloQSbA1FfIPbwk+wyAPBG5CC0km066QX4TLzakxN8mvcS6OAtycFw 2tZZLYzv9nNmyFcVHNLES5KQgLKybfEkUee3Qb0bMC1Ef+pF/EqHz77u4 F075Da4top14pVs3rmxEkhTMLt1aQ1+q48TWPrPhC+AOCziMVz9NIQNoe Bgcxy7Oz/DibVSNpyrS+mdzNFuhqE3rd+XJV4NuKxMKm1qzGoivXt/msl /0ixVP/5yc24X0mPFxw0DotkXAB+bZMlH6Em9BqInMrKTc1JO0sam+QOw P1UaT/BlUCf2LBR4MQbJcZuQDPPFHvV6DiWx1ll2jvL5w5E9aPCpUwytU w==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="361773484" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="361773484" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 01:56:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="856231599" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="856231599" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga004.jf.intel.com with ESMTP; 11 Aug 2023 01:56:43 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 11 Aug 2023 01:56:42 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 11 Aug 2023 01:56:42 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Fri, 11 Aug 2023 01:56:42 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.173) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Fri, 11 Aug 2023 01:56:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J/RNuZY+ELfSm+6nkp7IOH1E2Khccf7woW5rPkZVPnWiG1gWngp4oUPbyCyqCXXAAW63itmHKMtuFQwztaGOI128+zvlKGnG54ADEOE0KHxCE120gyti+C+atqtFzJbP7HspjxYAt0B5gdRe5ZTCyUmwjUAvhlzUncQmGN8CIBnZ6Qst3AL+u+4KT2zLG838m1l3j8rKM396hbnGwG90mhs6QSAWCA/OsWPM5AtMbbq6ybC9YLuNh2yC/EHxTglm16B4Lm/vIjNI3PLdwpDaQax1fnP/VnIPzzW9Tt5fhQCMEhuhA0t0pdmk2cwfnOG4rgqbyiyFO2i7XOXW5ma00g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qMOfXI0lnkORJYdnQy7SlZPYv7YSe3zfI/qzd2vfCvI=; b=gN7osff1cZJr39KPVIptXkJye28OScbeBZiLMBfP3PX8PpIDIpxpveNenOTxTj4JgVDxwhQ1KlWq3ZPG4LPjZQyUCWkE8kJVIJp+TVa2LWLUUdnP+t42MA4Ig7ABdINBfaMl9NF4EYBD/u0EHgAl6XLQQujOzAbh8IrYZh0BBD93OKmOSK09MTjDsHYTwMWUFa8PP0hEthlyNk62xyEDCVzKTnJlTeFW0lMSK4B5FDTIUyW0l0GJv/k9mcnBquajqRtF1578YqA/m/uzoJv2go8+8hF4wQpMwJZsZlXNf3boas/hQ7+F2GpRcap1Y9C3woJauhYaBBqyKt3dQxj70g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by PH7PR11MB7962.namprd11.prod.outlook.com (2603:10b6:510:245::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Fri, 11 Aug 2023 08:56:34 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::9802:65f0:c441:780f]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::9802:65f0:c441:780f%7]) with mapi id 15.20.6652.029; Fri, 11 Aug 2023 08:56:34 +0000 Date: Fri, 11 Aug 2023 09:56:27 +0100 From: Bruce Richardson To: Tyler Retzlaff CC: , , Honnappa Nagarahalli , Ruifeng Wang , "Jerin Jacob" , Sunil Kumar Kori , Mattias =?iso-8859-1?Q?R=F6nnblom?= , Joyce Kong , David Christensen , "Konstantin Ananyev" , David Hunt , Thomas Monjalon , David Marchand Subject: Re: [PATCH 1/6] eal: provide rte stdatomics optional atomics API Message-ID: References: <1691717521-1025-1-git-send-email-roretzla@linux.microsoft.com> <1691717521-1025-2-git-send-email-roretzla@linux.microsoft.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1691717521-1025-2-git-send-email-roretzla@linux.microsoft.com> X-ClientProxiedBy: DB7PR03CA0092.eurprd03.prod.outlook.com (2603:10a6:10:72::33) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|PH7PR11MB7962:EE_ X-MS-Office365-Filtering-Correlation-Id: cc779a01-5603-4c48-d444-08db9a48dd3b X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nyAPdPePS4MD54EcDuT3LQNZTZuFmiyYEjdVO7mpgnxCOn7GYIBC8FwDhYLtxYzwCvJt3HtH5McYgzGEeQwcbksrtOYSBvBgBPvFeGk1X7W84Mwq06WsjEAFEv0v6oolvu2v1QwReuH4OHZxS/n5y5qWrlbxlZgiyXIAhT8hlrfIgZEFkiGOfPPze06iZxZq65ptlftOavtH26ULkE1hZPyffxHrtARsQxVILI4+KsEYxEgBcSMMGPyqhuZqlHkwNbv1DhLaTTlYgDcYk737tierRQKFiXyTpZVTF6dCNpDSmWcsF4ElfrrqXsHMSYTXXrghXc+Do5ZxyHwExa+s0lOnmE4+zUM4HkLkycJzaqqZCo78yWg9JF07lad02K/ESi4VlxaOAxkkay0tkrHzIUlRIShiR4NIU2VdXQ78RyKZdHlLJDe7B4eWp9LUIiQ1mElSay7Y4DIXBX9cnMem67QhmNL4D//pBY6+n+c+k8CXUaMR24yZImyhiW/lOFiSrnlMcf2wiWlwnS5J+ugRYsd4lNxVeA/7asGgmQB8d5GxCijT4aBlMSV8pFak89m4 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(39860400002)(346002)(366004)(136003)(396003)(376002)(1800799006)(186006)(451199021)(6512007)(478600001)(6486002)(6916009)(4326008)(66556008)(66476007)(66946007)(5660300002)(316002)(6666004)(54906003)(41300700001)(8676002)(8936002)(6506007)(26005)(86362001)(7416002)(44832011)(38100700002)(82960400001)(83380400001)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BWRDXDId+bV7wLkWoy3Cg/xq6NJ04wuVb3sGvLbbSd6ViwXkNsaOjQQr31Lr?= =?us-ascii?Q?E7vINiscBbJ4K/h63Ep6iIsYqAyrBPj8UzRX5unhdplUwohUTy+f1+m5ghgu?= =?us-ascii?Q?/SnhhYeqOly7O83g4LsgI8OdSe9sV4ODYNle1RM5pOGhja8L2cb2WysWNXIB?= =?us-ascii?Q?3tkXorf0766J2Vl7TXwAZUW8LMltGI/YS0LvXJ6H4ikzT60dP5KCjcxeEwgx?= =?us-ascii?Q?5BzpO7Q/eB8qQQrEo0wWYMTYEaoZvH2WqMj5/0J+6LN4t7e7EjRKd2nBCNOM?= =?us-ascii?Q?ZzwCcLh/2CGznmCHiir0Onwtaj4o4IHvTUZFJerUHIvuLsofvND0ACJl9QK8?= =?us-ascii?Q?HGed1vqCPSizaWiuCXdPcTGP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/GT?= =?us-ascii?Q?fHzGVIt7wpnE3/tqE54Q3zbOHbJMaK0WS4a7aj4dKxsGS8QBOm8AR/99oTNR?= =?us-ascii?Q?vhBdPpT8Dsl49aTFMtgTWGoNe1n3Za7JOnXmb3gil8bnZ8Jr57hthKrxCpek?= =?us-ascii?Q?Ebj74BtN9NTr+JQzq3L8QaMqcKTsXHf+MDRo/dKhTudQGjHGxwynqJUn0WPD?= =?us-ascii?Q?SnS8CJrZkFjDllCfiF/3l05/rUVsAgz/18ngBajoSvv2DKzRKujajn+8LMkk?= =?us-ascii?Q?A+o9UmnR1+FcapHdk+xszy1+uPhjNIqIZtxf30MTu5CQAHR9IPdKhIl9X8xC?= =?us-ascii?Q?s2RFLwEkawZEU7zWlvBtwjrb9zkj2Q/DKcBq5dof5WZaQXlsR9HzY45FaTwS?= =?us-ascii?Q?AQ=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: cc779a01-5603-4c48-d444-08db9a48dd3b X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2023 08:56:34.5071 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z1XnmuMyrKANb3UoIoywS7NhRpa0zS4vcmPDDGxSvpFRpOqALmpS7sgOy0pOsQHkC9/HIu6hhFtuAB6vPrssVI7D0lbV6rCxs7jzFzWo3pY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7962 X-OriginatorOrg: intel.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 On Thu, Aug 10, 2023 at 06:31:56PM -0700, Tyler Retzlaff wrote: > Provide API for atomic operations in the rte namespace that may > optionally be configured to use C11 atomics with meson > option enable_stdatomics=true > > Signed-off-by: Tyler Retzlaff > --- > config/meson.build | 1 + > config/rte_config.h | 1 + > lib/eal/include/meson.build | 1 + > lib/eal/include/rte_stdatomic.h | 162 ++++++++++++++++++++++++++++++++++++++++ > meson_options.txt | 1 + > 5 files changed, 166 insertions(+) > create mode 100644 lib/eal/include/rte_stdatomic.h > > diff --git a/meson_options.txt b/meson_options.txt > index 621e1ca..7d6784d 100644 > --- a/meson_options.txt > +++ b/meson_options.txt > @@ -46,6 +46,7 @@ option('mbuf_refcnt_atomic', type: 'boolean', value: true, description: > 'Atomically access the mbuf refcnt.') > option('platform', type: 'string', value: 'native', description: > 'Platform to build, either "native", "generic" or a SoC. Please refer to the Linux build guide for more information.') > +option('enable_stdatomic', type: 'boolean', value: false, description: 'enable use of C11 stdatomic') Minor nit - all other options in this file put the description on it's own line. For consistency I think we should do the same here. > option('enable_trace_fp', type: 'boolean', value: false, description: > 'enable fast path trace points.') > option('tests', type: 'boolean', value: true, description: > -- > 1.8.3.1 >