Re: [PATCH v6] netfilter: save the hash of the tuple in the originaldirection for latter use

From: Patrick McHardy
Date: Tue Sep 21 2010 - 11:50:49 EST


Am 20.09.2010 17:06, schrieb Changli Gao:
> 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.

Applied, thanks Changli.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/