aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-07-19 12:35:40 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-19 12:35:40 -0400
commitbd27290a593f80cb99e95287cb29c72c0d57608b (patch)
treec12dfb1cb4cfd7f7d65e34fcf53797685ec66670 /include/linux/netdevice.h
parentdb5dda905759c931ceb8f3f2fcfd7719009acc98 (diff)
net: 64bit stats for netdev_queue
Since struct netdev_queue tx_bytes/tx_packets/tx_dropped are already protected by _xmit_lock, its easy to convert these fields to u64 instead of unsigned long. This completes 64bit stats for devices using them (vlan, macvlan, ...) Strictly, we could avoid the locking in dev_txq_stats_fold() on 64bit arches, but its slow path and we prefer keep it simple. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index fdc3f2992230..b6262898ece0 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -501,9 +501,9 @@ struct netdev_queue {
501 * please use this field instead of dev->trans_start 501 * please use this field instead of dev->trans_start
502 */ 502 */
503 unsigned long trans_start; 503 unsigned long trans_start;
504 unsigned long tx_bytes; 504 u64 tx_bytes;
505 unsigned long tx_packets; 505 u64 tx_packets;
506 unsigned long tx_dropped; 506 u64 tx_dropped;
507} ____cacheline_aligned_in_smp; 507} ____cacheline_aligned_in_smp;
508 508
509#ifdef CONFIG_RPS 509#ifdef CONFIG_RPS