]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: nf_nat_core: don't check if the tuple is used if there is no other choice
authorChangli Gao <xiaosuo@gmail.com>
Thu, 16 Sep 2010 17:45:19 +0000 (19:45 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 16 Sep 2010 17:45:19 +0000 (19:45 +0200)
commit99ad3c53b36a056a472927de9c79eda231ecc6fe
tree61224a837d3eb7e6504fe49d10613b3717ccd67f
parent70a851667dbd7aa3f7be9609d6580ca9861230b3
netfilter: nf_nat_core: don't check if the tuple is used if there is no other choice

Eliminate nf_nat_used_tuple() to save some CPU cycles when there is no
other choice.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/nf_nat_core.c