Re: [PATCH net v1 1/2] octeon_ep: avoid compiler and IQ/OQ reordering
From: Paolo Abeni
Date: Mon Dec 29 2025 - 11:18:22 EST
On 12/19/25 8:29 AM, Vimlesh Kumar wrote:
> Utilize READ_ONCE and WRITE_ONCE APIs for IO queue Tx/Rx
> variable access to prevent compiler optimization and reordering.
> Additionally, ensure IO queue OUT/IN_CNT registers are flushed
> by performing a read-back after writing.
Please explain why such _ONCE() annotation are required, and what could
be reordered otherwise.
I don't think they are needed,
/P