[PATCH v4 2/4] net/macb: add new poll mode driver
Stephen Hemminger
stephen at networkplumber.org
Wed Apr 16 18:34:02 CEST 2025
On Wed, 2 Apr 2025 06:58:56 +0000
liwencheng <liwencheng at phytium.com.cn> wrote:
> +
> +struct __rte_cache_aligned macb_rx_queue_stats {
> + union {
> + unsigned long first;
> + unsigned long rx_packets;
> + };
> + unsigned long rx_bytes;
> + unsigned long rx_dropped;
> +};
> +
> +struct __rte_cache_aligned macb_tx_queue_stats {
> + unsigned long tx_packets;
> + unsigned long tx_bytes;
> + unsigned long tx_dropped;
> + unsigned long tx_start_packets;
> + unsigned long tx_start_bytes;
> +};
> +
Doesn't really matter, but most drivers use uint64_t for stats.
More information about the dev
mailing list