Re: [PATCH v5 03/14] net/sxe: add tx rx setup and data path

Stephen Hemminger
2025-07-17T18:12:29Z

On Wed, 9 Jul 2025 21:20:10 -0400
Jie Liu <liujie5@linkdatatechnology.com> wrote:

> +next_desc:
> + cur_desc = &desc_ring[cur_idx];
> + staterr = rte_le_to_cpu_32(cur_desc->wb.upper.status_error);
> +
> + if (!(staterr & SXE_RXDADV_STAT_DD))
> + break;
> +
> + rte_atomic_thread_fence(rte_memory_order_acquire);
> +

Maybe the heavy weight thread_fence here could be replaced by using
atomic access on status_error which is really the only part the driver
is looking at?