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 246CFA0C4D for ; Mon, 2 Aug 2021 19:26:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18ADB41178; Mon, 2 Aug 2021 19:26:09 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id C60D440140; Mon, 2 Aug 2021 19:26:06 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 605AF5C00EC; Mon, 2 Aug 2021 13:26:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 02 Aug 2021 13:26:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= bkHv48FWbQ0wLslJ4n6kDkEzS1sNU7UC3kU3qkCQT2k=; b=LNQa+D5zWGl5Ko/D skDPvYweHbIAfKEx1iXR+Y+YjH+z+ZNpwQCHHcLOD/Ettc7eaja3bUsg8yKqI/Av yOL1kD6xuL3m7BJtw4de9CdabfX3p6IpKR8+z4h4qk1G4eHgvt9gBehQ/ws5dHoJ Xo5ulpQ2lSerLY7WK7Qx+eYVjWCLXtEZIROpnf2W+/lxdFcNfgbhQzb8cLLcvqEJ 40G4Un5G/jdahbBqRjsYwU4KekTvKCpqCbQpqqOcPqRpYqA9Ak0P9tkRooa2u3Pp 3pF0T408eaNJQ8+nzly9C+V1TTb+B+v/w6UecKaolDw391rH/KWpl2EP7EYNQm80 SXibhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=bkHv48FWbQ0wLslJ4n6kDkEzS1sNU7UC3kU3qkCQT 2k=; b=Wo12TlgLZMy5xisci8qGMBRXQjf0cKK/KhjBs8p5Kj0Hbo6lrgipIEVBS 3KiXwN+OejKX+1KbiQ9qTCNC0Ha//teNkkd41ZjEEoGROA12HkAD+OZbGOHJI+2q aysxgTFDQgDXg1kkpogxQBiM4ps7VjL5TIYR6nQmMEXDT8m75hXWBk7NBPhvxDEX FobANEWe3DHO5H+jFoBvZvW9WwjMBTKRprPbgIzDkbtVJGwr8YJbD8/cYaKi/ME4 4MoivIuygiuxSQzwEC26legk1j7FvbrWOl6mzFY8uErP5qLZmO9Pg3S6chW43Z73 6NKilnA1bZ+Dxrf3v6eeqFhRVO/+A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddriedvgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Aug 2021 13:26:04 -0400 (EDT) From: Thomas Monjalon To: Ruifeng Wang , Joyce Kong , Dharmik Thakkar , Honnappa Nagarahalli Cc: "stephen@networkplumber.org" , "mdr@ashroe.eu" , "dev@dpdk.org" , nd , "stable@dpdk.org" Date: Mon, 02 Aug 2021 19:26:03 +0200 Message-ID: <1675374.cPzSOG9ZiI@thomas> In-Reply-To: References: <20210712080237.19920-1-joyce.kong@arm.com> <2994487.6sU7YWgjxR@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] doc: update atomic operation deprecation 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" 02/08/2021 19:22, Honnappa Nagarahalli: > From: Thomas Monjalon > > 23/07/2021 11:49, Joyce Kong: > > Considering all the questions regarding usage of atomics, I still think we need a > > documentation about their correct use. > > I think few things to document are: > 1) Use of __atomic_add_fetch vs __atomic_fetch_add > 2) Using __ATOMIC_RELAXED for statistics > 3) Using rte_atomic_thread_fence API That's a good list. Let's start with that please. I would like an explanation about when full barrier may be used.