On Wed, 28 Jan 2026 01:36:04 -0800 [email protected] wrote: > +/** > + * Read tp_status from packet mmap ring. Matches kernel's READ_ONCE() with > smp_rmb() > + * ordering in af_packet.c __packet_get_status. > + */ > +static inline uint32_t > +tpacket_read_status(const volatile void *tp_status) > +{ > + rte_smp_rmb(); > + return *((const volatile unaligned_uint32_t *)tp_status); > +}
Wouldn't rte_compiler_barrier() be better choice here. You are really only trying to keep compiler from optimzing the access. And tp_status is aligned in ring isn't it?

