netfilter: nf_conntrack: use this_cpu_inc()
authorEric Dumazet <edumazet@google.com>
Wed, 18 Apr 2012 04:36:40 +0000 (06:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 17:36:33 +0000 (19:36 +0200)
commitac3a546ac89fdf3c4b50e40039a5a7f6df4dda72
tree8fbe86f3e2fcd9c2ba23a7cc0832f60240b07658
parenta9006892643a8f4e885b692de0708bcb35a7d530
netfilter: nf_conntrack: use this_cpu_inc()

this_cpu_inc() is IRQ safe and faster than
local_bh_disable()/__this_cpu_inc()/local_bh_enable(), at least on x86.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Christoph Lameter <cl@linux.com>
Cc: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack.h