]> git.baikalelectronics.ru Git - kernel.git/commit
sit: percpu stats accounting
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 27 Sep 2010 00:38:18 +0000 (00:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 04:30:44 +0000 (21:30 -0700)
commitfa6e393dc5b6e23b1638abe7b53bf0e25f73bea4
treea2c08d2a77cec6255a5718ed296592b1fc0d33ed
parentbca90fa399010e5302982b829441034acc79e06f
sit: 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/sit.c