Subject: Re: [PATCHv2] net: usbnet: support 64bit stats in qmi_wwan driver

From: Stephen Hemminger <[email-masked]>
Date: Fri, 24 Mar 2017 11:48:53 -0700

On Fri, 24 Mar 2017 11:27:30 +1000
Greg Ungerer <[email-masked]> 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;
};