Remove the deprecated refcnt_atomic union fields in rte_mbuf_ext_shared_info structure.
Signed-off-by: Phil Yang <phil.y...@arm.com> Reviewed-by: Ruifeng wang <ruifeng.w...@arm.com> --- 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