ip6tnl: percpu stats accounting
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 28 Sep 2010 03:23:34 +0000 (03:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2010 20:25:52 +0000 (13:25 -0700)
commit8560f2266b36adb43238f1f9fd13958dd031901c
treeda92b380a566f5e2daba65678b874f0f2c4df3cb
parent153f0943382e9ae0bff7caa110a1a4656088d0d4
ip6tnl: percpu stats accounting

Maintain per_cpu tx_bytes, tx_packets, rx_bytes, rx_packets.

Other seldom used fields are kept in netdev->stats structure, possibly
unsafe.

This is a preliminary work to support lockless transmit path, and
correct RX stats, that are already unsafe.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c