[dpdk-dev] [PATCH v2] mbuf: use C11 atomics for refcnt operations

Stephen Hemminger stephen at networkplumber.org
Tue Jul 7 19:13:14 CEST 2020


On Tue,  7 Jul 2020 18:10:33 +0800
Phil Yang <phil.yang at arm.com> wrote:

> +	return (uint16_t)(__atomic_add_fetch((int16_t *)&shinfo->refcnt_atomic,
> +

Why do you need so many casts here?
The type of refcnt_atomic is now uint16 after your patch.


More information about the dev mailing list