aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2009-11-18 07:09:39 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-19 13:16:22 -0800
commit2b1c8b0f925c3f5943cf95d263d72927baae88e7 (patch)
tree956b46cc040504a0545065184e322ff596ef5d16 /net
parentieee802154: dont leak skbs in ieee802154_fake_xmit() (diff)
downloadlinux-dev-2b1c8b0f925c3f5943cf95d263d72927baae88e7.tar.xz
linux-dev-2b1c8b0f925c3f5943cf95d263d72927baae88e7.zip
veth: Fix veth_get_stats()
veth_get_stats() can be called in parallel on several cpus. It's better to not reset dev->stats as it could give wrong result on one cpu. Use temporary variables, then store the final results. Also, we should loop on every possible cpus, not only online cpus, or cpu hotplug can suddenly give wrong veth stats. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions