summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSathya Perla <sathya.perla@emulex.com>2011-06-27 00:40:48 +0400
committerDavid S. Miller <davem@davemloft.net>2011-06-27 11:09:31 +0400
commit6e53391cb4f9491182e7fbd280966ebe2aca07dc (patch)
treed2e920a3b86e8d58903e051c98071da646eabb1e /scripts
parentc6af9c406ceb3434281cf230938453931dcbab75 (diff)
downloadlinux-6e53391cb4f9491182e7fbd280966ebe2aca07dc.tar.xz
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 'scripts')
0 files changed, 0 insertions, 0 deletions