Home
last modified time | relevance | path

Searched hist:"6 b10de38f0ef4e921a1f6e5cba2b6c92d6b46ecd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dloopback.cdiff 6b10de38f0ef4e921a1f6e5cba2b6c92d6b46ecd Mon Jun 14 00:59:22 CDT 2010 Eric Dumazet <eric.dumazet@gmail.com> loopback: Implement 64bit stats on 32bit arches

Uses a seqcount_t to synchronize stat producer and consumer, for packets
and bytes counter, now u64 types.

(dropped counter being rarely used, stay a native "unsigned long" type)

No noticeable performance impact on x86, as it only adds two increments
per frame. It might be more expensive on arches where smp_wmb() is not
free.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>