diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-06-14 05:59:22 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-14 23:13:07 -0700 |
commit | 6b10de38f0ef4e921a1f6e5cba2b6c92d6b46ecd (patch) | |
tree | 76e914c5097cb80cf65bf9ce1e48acff8e46795c /drivers/net/bnx2x_link.c | |
parent | ipv6: RCU changes in ipv6_get_mtu() and ip6_dst_hoplimit() (diff) | |
download | linux-dev-6b10de38f0ef4e921a1f6e5cba2b6c92d6b46ecd.tar.xz linux-dev-6b10de38f0ef4e921a1f6e5cba2b6c92d6b46ecd.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions