diff options
| author | Changli Gao <[email protected]> | 2010-05-02 05:42:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-05-03 05:26:57 +0000 |
| commit | dee42870a423ad485129f43cddfe7275479f11d8 (patch) | |
| tree | e30433d3b55ee248eb672765fe6705be160d882c /net/unix/garbage.c | |
| parent | Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne... (diff) | |
| download | kernel-dee42870a423ad485129f43cddfe7275479f11d8.tar.gz kernel-dee42870a423ad485129f43cddfe7275479f11d8.zip | |
net: fix softnet_stat
Per cpu variable softnet_data.total was shared between IRQ and SoftIRQ context
without any protection. And enqueue_to_backlog should update the netdev_rx_stat
of the target CPU.
This patch renames softnet_data.total to softnet_data.processed: the number of
packets processed in uppper levels(IP stacks).
softnet_stat data is moved into softnet_data.
Signed-off-by: Changli Gao <[email protected]>
----
include/linux/netdevice.h | 17 +++++++----------
net/core/dev.c | 26 ++++++++++++--------------
net/sched/sch_generic.c | 2 +-
3 files changed, 20 insertions(+), 25 deletions(-)
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
