From: David S. Miller Date: Mon, 21 Jul 2008 16:48:06 +0000 (-0700) Subject: net: Improve simple_tx_hash(). X-Git-Tag: v2.6.27-rc1~953^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b2fed1f4802b8fcc9d7548a8f785225d38f9a3;p=pandora-kernel.git net: Improve simple_tx_hash(). Based upon feedback from Eric Dumazet and Andi Kleen. Cure several deficiencies in simple_tx_hash() by using jhash + reciprocol multiply. 1) Eliminates expensive modulus operation. 2) Makes hash less attackable by using random seed. 3) Eliminates endianness hash distribution issues. Signed-off-by: David S. Miller --- Reading git-diff-tree failed