[2/2] mbuf: remove external buffer atomically accessed refcnt
Checks
Commit Message
Remove the deprecated refcnt_atomic union fields in
rte_mbuf_ext_shared_info structure.
Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng wang <ruifeng.wang@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(-)
@@ -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
------------
@@ -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. */