Re: [PATCH v12 10/13] net/sxe: add xstats function

Stephen Hemminger
2025-10-24T17:11:40Z

On Mon, 28 Jul 2025 17:05:14 +0800
liujie5@linkdatatechnology.com wrote:

> +#define SXE_XSTAT_SW_CNT (sizeof(sxe_xstats_sw_field) / \
> + sizeof(sxe_xstats_sw_field[0]))
> +
> +#define SXE_XSTAT_MAC_CNT (sizeof(sxe_xstats_mac_field) / \
> + sizeof(sxe_xstats_mac_field[0]))
> +
> +#define SXE_XSTAT_FC_CNT (sizeof(sxe_xstats_fc_field) / \
> + sizeof(sxe_xstats_fc_field[0]))
> +

DPDK has RTE_DIM() macro for this