> For me, it reads easier if you use __rte_atomic which is alias for _Atomic
> which is
> the type qualifier. This is in a bunch of other places in DPDK already:
>
> /* tp_status hands a frame between the kernel and us; order frame accesses */
> static inline uint32_t
> tpacket_read_status(struct tpacket2_hdr *ppd)
> {
> return rte_atomic_load_explicit((uint32_t __rte_atomic
> *)&ppd->tp_status,
> rte_memory_order_acquire);
> }
>
> static inline void
> tpacket_write_status(struct tpacket2_hdr *ppd, uint32_t status)
> {
> rte_atomic_store_explicit((uint32_t __rte_atomic *)&ppd->tp_status,
> status,
> rte_memory_order_release);
> }
sounds good, will fix in v9.