Thread (8 messages) 8 messages, 4 authors, 2011-06-28

Re: [PATCH net-next-2.6 1/3] be2net: fix netdev_stats_update

flat view

From: Eric Dumazet <hidden>
Date: 2011-06-27 06:56:37

Le lundi 27 juin 2011 à 12:10 +0530, Sathya Perla a écrit :
Problem initially reproted and fixed by Eric Dumazet [off-list ref]

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 <redacted>
---
Signed-off-by: Eric Dumazet <redacted>

Thanks

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help