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

Stephen Hemminger stephen at networkplumber.org
Thu Jul 17 20:12:23 CEST 2025


On Wed,  9 Jul 2025 21:20:10 -0400
Jie Liu <liujie5 at 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?


More information about the dev mailing list