Thread (2 messages) flat view 2 messages, 2 authors, 2017-03-24

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

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-03-24 18:49:12

On Fri, 24 Mar 2017 11:27:30 +1000
Greg Ungerer [off-list ref] 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;
};
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help