Re: [PATCH net-next] net: dsa: User per-cpu 64-bit statistics

From
Eric Dumazet <hidden>
Date
2017-08-22 12:56:55
Also in
lkml
Reply to
Florian Fainelli, 2017-08-22
On Mon, 2017-08-21 at 17:10 -0700, Florian Fainelli wrote:
Well if we return 1 from atomic_inc_return() and the previous value was
zero, of course we are going to be bugging here. The idea behind the
patch I suppose is to make sure that we always get an odd number upon
u64_stats_update_begin()/entry, and an even number upon
u64_stats_update_end()/exit, right?
Yes, this is right.
Thread (9 messages) 9 messages, 3 authors, last reply 2017-08-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help