diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2011-06-26 20:40:48 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-27 00:09:31 -0700 |
commit | 6e53391cb4f9491182e7fbd280966ebe2aca07dc (patch) | |
tree | d2e920a3b86e8d58903e051c98071da646eabb1e /drivers/cdrom | |
parent | c6af9c406ceb3434281cf230938453931dcbab75 (diff) | |
download | linux-stable-6e53391cb4f9491182e7fbd280966ebe2aca07dc.tar.gz linux-stable-6e53391cb4f9491182e7fbd280966ebe2aca07dc.tar.bz2 linux-stable-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/cdrom')
0 files changed, 0 insertions, 0 deletions