netfilter: nf_nat: use per-conntrack locking for sequence number adjustments
authorPatrick McHardy <kaber@trash.net>
Sun, 28 Jul 2013 20:54:11 +0000 (22:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 31 Jul 2013 17:54:59 +0000 (19:54 +0200)
commit12e7ada385eada77854174ecaf469a0791277ddd
treed42478631e9d00d5df5b95edbc6dc9fbd456f13a
parent2d89c68ac78ae432038ef23371d2fa949d725d43
netfilter: nf_nat: use per-conntrack locking for sequence number adjustments

Get rid of the global lock and use per-conntrack locks for protecting the
sequencen number adjustment data. Additionally saves one lock/unlock
operation for every TCP packet.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_helper.c