]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
bridge: 64bit rx/tx counters
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Jun 2010 20:00:48 +0000 (13:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2010 20:00:48 +0000 (13:00 -0700)
commit406818ff347cbbdae2fb21fafd1939d00cf479c5
tree02c6a4d90b4a810ed28a3e61e486cf00c9404bbd
parent16b8a4761cbe5082cd35641c066d7c4b6b83cdca
bridge: 64bit rx/tx counters

Use u64_stats_sync infrastructure to provide 64bit rx/tx
counters even on 32bit hosts.

It is safe to use a single u64_stats_sync for rx and tx,
because BH is disabled on both, and we use per_cpu data.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_input.c
net/bridge/br_private.h