On Fri, 24 Mar 2017 11:27:30 +1000
Greg Ungerer <g...@linux-m68k.org> wrote:

> +struct usbnet_stats64 {
> +     struct u64_stats_sync   syncp;
> +     u64                     rx_packets;
> +     u64                     rx_bytes;
> +     u64                     tx_packets;
> +     u64                     tx_bytes;
> +};
> +

There already is similar structure in netdevice.h

/* often modified stats are per-CPU, other are shared (netdev->stats) */
struct pcpu_sw_netstats {
        u64     rx_packets;
        u64     rx_bytes;
        u64     tx_packets;
        u64     tx_bytes;
        struct u64_stats_sync   syncp;
};

Reply via email to