From: Changli Gao Date: Tue, 21 Sep 2010 15:49:20 +0000 (+0200) Subject: netfilter: save the hash of the tuple in the original direction for latter use X-Git-Tag: v2.6.37-rc1~147^2~3^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f07e91bef34db0fc8b1a224096e97f02dc0d56;p=pandora-kernel.git netfilter: save the hash of the tuple in the original direction for latter use Since we don't change the tuple in the original direction, we can save it in ct->tuplehash[IP_CT_DIR_REPLY].hnode.pprev for __nf_conntrack_confirm() use. __hash_conntrack() is split into two steps: hash_conntrack_raw() is used to get the raw hash, and __hash_bucket() is used to get the bucket id. In SYN-flood case, early_drop() doesn't need to recompute the hash again. Signed-off-by: Changli Gao Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed