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 D6EBBA04B5; Fri, 11 Sep 2020 09:36:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC1271C114; Fri, 11 Sep 2020 09:36:35 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id BB33A1C114 for ; Fri, 11 Sep 2020 09:36:33 +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 46870113E; Fri, 11 Sep 2020 00:36:33 -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 3D8B33F73C; Fri, 11 Sep 2020 00:36:29 -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:52 +0800 Message-Id: <1599809752-25256-3-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 2/2] mbuf: remove external buffer 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_ext_shared_info structure. Signed-off-by: Phil Yang Reviewed-by: Ruifeng wang --- doc/guides/rel_notes/release_20_11.rst | 4 ++-- lib/librte_mbuf/rte_mbuf_core.h | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 6eeeffc..6c90d75 100644 --- a/doc/guides/rel_notes/release_20_11.rst +++ b/doc/guides/rel_notes/release_20_11.rst @@ -100,8 +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``. +* mbuf: The field ``refcnt_atomic`` has been removed from structures + ``rte_mbuf`` and ``rte_mbuf_ext_shared_info``. Known Issues ------------ diff --git a/lib/librte_mbuf/rte_mbuf_core.h b/lib/librte_mbuf/rte_mbuf_core.h index 71fd6f5..cee3d5a 100644 --- a/lib/librte_mbuf/rte_mbuf_core.h +++ b/lib/librte_mbuf/rte_mbuf_core.h @@ -674,11 +674,7 @@ typedef void (*rte_mbuf_extbuf_free_callback_t)(void *addr, void *opaque); struct rte_mbuf_ext_shared_info { rte_mbuf_extbuf_free_callback_t free_cb; /**< Free callback function */ void *fcb_opaque; /**< Free callback argument */ - RTE_STD_C11 - union { - rte_atomic16_t refcnt_atomic; /**< Atomically accessed refcnt */ - uint16_t refcnt; - }; + uint16_t refcnt; }; /**< Maximum number of nb_segs allowed. */ -- 2.7.4