From: Changli Gao Date: Mon, 2 Aug 2010 15:35:49 +0000 (+0200) Subject: netfilter: nf_nat: don't check if the tuple is unique when there isn't any other... X-Git-Tag: v2.6.36-rc1~571^2~46^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2452a99dc0496a90abd0090c280671370c0f3e1c;p=pandora-kernel.git netfilter: nf_nat: don't check if the tuple is unique when there isn't any other choice The tuple got from unique_tuple() doesn't need to be really unique, so the check for the unique tuple isn't necessary, when there isn't any other choice. Eliminating the unnecessary nf_nat_used_tuple() can save some CPU cycles too. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed