netfilter: xt_statistic: remove nth_lock spinlock
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Jun 2010 10:00:41 +0000 (12:00 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 1 Jun 2010 10:00:41 +0000 (12:00 +0200)
commitfabf3a85ab88063c10f367cccba7b3a1e59df996
tree7c1ea5590906e50359dd10c590a778f84abe3ca1
parenta8b563894d6fee9b90b7d6ed76f8ec28ad45bcbe
netfilter: xt_statistic: remove nth_lock spinlock

Use atomic_cmpxchg() to avoid dirtying a shared location.

xt_statistic_priv smp aligned to avoid sharing same cache line with
other stuff.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_statistic.c