Re: 64 bit netdev stats counter

David S. Miller
2002-07-12T22:14:05Z

From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: 13 Jul 2002 00:20:53 +0100

gcc will output

increment low 32bit
if zero
increment high

Which means we can rapidly get 2^32 out of sync

True and this equals the "fix" suggested C code involving
two 32-bit counters that the original author posted :-)

So this makes both cases equally wrong.