]> git.baikalelectronics.ru Git - kernel.git/commit
net: 64bit stats for netdev_queue
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 19 Jul 2010 16:35:40 +0000 (09:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jul 2010 16:35:40 +0000 (09:35 -0700)
commit6ae099ac2664138a98c8c4e6892718149d53dd97
treec12dfb1cb4cfd7f7d65e34fcf53797685ec66670
parent5e7d0034057f020f8e4cfbbbebfc5e5c3c3a90c1
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>
include/linux/netdevice.h
net/core/dev.c