[PATCH v5 1/9] eal: generic 64 bit counter

Wathsala Wathawana Vithanage wathsala.vithanage at arm.com
Thu May 16 20:22:23 CEST 2024


Hi Stephen,

> +__rte_experimental
> +static inline uint64_t
> +rte_counter64_fetch(const rte_counter64_t *counter) {
> +	return *counter;
> +}

What if the address pointed by counter is not aligned and the
architecture doesn't support atomic (untorn) loads on non-aligned loads? 

--wathsala




More information about the dev mailing list