From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC96CA04B5; Fri, 11 Sep 2020 09:36:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83A511C10F; Fri, 11 Sep 2020 09:36:31 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id D737F1C10F for ; Fri, 11 Sep 2020 09:36:29 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 59D46113E; Fri, 11 Sep 2020 00:36:29 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (phil-VirtualBox.shanghai.arm.com [10.169.182.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4D4003F73C; Fri, 11 Sep 2020 00:36:26 -0700 (PDT) From: Phil Yang To: konstantin.ananyev@intel.com, david.marchand@redhat.com, olivier.matz@6wind.com, dev@dpdk.org Cc: Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, nd@arm.com, John McNamara , Marko Kovacevic Date: Fri, 11 Sep 2020 15:35:51 +0800 Message-Id: <1599809752-25256-2-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599809752-25256-1-git-send-email-phil.yang@arm.com> References: <1599809752-25256-1-git-send-email-phil.yang@arm.com> Subject: [dpdk-dev] [PATCH 1/2] mbuf: remove generic mbuf atomically accessed refcnt X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove the deprecated refcnt_atomic union fields in rte_mbuf structure. Signed-off-by: Phil Yang Reviewed-by: Ruifeng Wang --- doc/guides/rel_notes/release_20_11.rst | 2 ++ lib/librte_mbuf/rte_mbuf_core.h | 7 +------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index df227a1..6eeeffc 100644 --- a/doc/guides/rel_notes/release_20_11.rst +++ b/doc/guides/rel_notes/release_20_11.rst @@ -100,6 +100,8 @@ ABI Changes Also, make sure to start the actual text at the margin. ======================================================= +* mbuf: The field ``refcnt_atomic`` has been removed from structure + ``rte_mbuf``. Known Issues ------------ diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h index 8cd7137..71fd6f5 100644 --- a/lib/librte_mbuf/rte_mbuf_core.h +++ b/lib/librte_mbuf/rte_mbuf_core.h @@ -495,12 +495,7 @@ struct rte_mbuf { * or non-atomic) is controlled by the CONFIG_RTE_MBUF_REFCNT_ATOMIC * config option. */ - RTE_STD_C11 - union { - rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */ - /** Non-atomically accessed refcnt */ - uint16_t refcnt; - }; + uint16_t refcnt; uint16_t nb_segs; /**< Number of segments. */ /** Input port (16 bits to support more than 256 virtual ports). -- 2.7.4