[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170324114853.6ec9b09e@xeon-e3>
Date: Fri, 24 Mar 2017 11:48:53 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Greg Ungerer <gerg@...ux-m68k.org>
Cc: bjorn@...k.no, oneukum@...e.com, netdev@...r.kernel.org,
linux-usb@...r.kernel.org
Subject: Re: [PATCHv2] net: usbnet: support 64bit stats in qmi_wwan driver
On Fri, 24 Mar 2017 11:27:30 +1000
Greg Ungerer <gerg@...ux-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;
};
Powered by blists - more mailing lists