summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_ethtool.c
diff options
context:
space:
mode:
authorSathya Perla <sathya.perla@emulex.com>2011-06-26 22:40:48 +0200
committerDavid S. Miller <davem@davemloft.net>2011-06-27 09:09:31 +0200
commit6e53391cb4f9491182e7fbd280966ebe2aca07dc (patch)
treed2e920a3b86e8d58903e051c98071da646eabb1e /drivers/net/benet/be_ethtool.c
parentnet: wimax: Remove of unused 'rfkill_input' pointer (diff)
downloadlinux-6e53391cb4f9491182e7fbd280966ebe2aca07dc.tar.xz
linux-6e53391cb4f9491182e7fbd280966ebe2aca07dc.zip
be2net: fix netdev_stats_update
Problem initially reproted and fixed by Eric Dumazet <eric.dumazet@gmail.com> 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 <sathya.perla@emulex.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
0 files changed, 0 insertions, 0 deletions