]> git.baikalelectronics.ru Git - 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)
commit4ff49cdcc3d1afd939566a4ba69863909525e9a4
tree02c6a4d90b4a810ed28a3e61e486cf00c9404bbd
parent94f13c982f4cfd1a7a5ba3051e836e0b04d74758
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