From: Sathya Perla Date: Sun, 26 Jun 2011 20:40:48 +0000 (+0000) Subject: be2net: fix netdev_stats_update X-Git-Tag: v3.1-rc1~316^2~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e53391cb4f9491182e7fbd280966ebe2aca07dc;p=pandora-kernel.git be2net: fix netdev_stats_update Problem initially reproted and fixed by Eric Dumazet netdev_stats_update() resets netdev->stats and then accumulates stats from various rings. This is wrong as stats readers can sometimes catch zero values. Use temporary variables instead for accumulating per-ring values. Signed-off-by: Sathya Perla Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed