[Devel] Re: [PATCH 1/7] Omit double hash calculations in xxx_frag_intern

David Miller davem at davemloft.net
Wed Oct 17 19:44:10 PDT 2007


From: Pavel Emelyanov <xemul at openvz.org>
Date: Tue, 16 Oct 2007 17:48:46 +0400

> Since the hash value is already calculated in xxx_find, we can 
> simply use it later. This is already done in netfilter code, 
> so make the same in ipv4 and ipv6.
> 
> Signed-off-by: Pavel Emelyanov <xemul at openvz.org>

Applied, but if we ever implement dynamically sized frag
queue hash tables, this recomputation of the hash function
in the hash insert function would need to be re-added.




More information about the Devel mailing list