ipip: percpu stats accounting
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 27 Sep 2010 00:35:50 +0000 (00:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 04:30:43 +0000 (21:30 -0700)
commit3c97af99a5aa17feaebb4eb0f85f51ab6c055797
tree6d14e38cc4479acf15352062974ee8e4c3cccaac
parente985aad723d7709e6bee566bacb100d33d9b791b
ipip: 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/ipv4/ipip.c