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: David Miller <davem@davemloft.net>
Date: 2011-06-27 07:07:45

From: Eric Dumazet <redacted>
Date: Mon, 27 Jun 2011 08:56:29 +0200
Le lundi 27 juin 2011 à 12:10 +0530, Sathya Perla a écrit :
quoted
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>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help