From: Eric Dumazet Date: Wed, 18 Nov 2009 07:09:39 +0000 (+0000) Subject: veth: Fix veth_get_stats() X-Git-Tag: v2.6.32~30^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1c8b0f925c3f5943cf95d263d72927baae88e7;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed