loopback: use u64_stats_sync infrastructure
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 22 Jun 2010 12:44:11 +0000 (12:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jun 2010 04:33:16 +0000 (21:33 -0700)
commit5eaa0bd81f93225b6d1972b373ed00ca763052b2
tree44b8ddc198dfe097de65b5a13ffb9c9a65499fa1
parent4b4194c40f4ac8d03a700845f8978cba53246b5a
loopback: use u64_stats_sync infrastructure

Commit 6b10de38f0ef (loopback: Implement 64bit stats on 32bit arches)
introduced 64bit stats in loopback driver, using a private seqcount and
private helpers.

David suggested to introduce a generic infrastructure, added in (net:
Introduce u64_stats_sync infrastructure)

This patch reimplements loopback 64bit stats using the u64_stats_sync
infrastructure.

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