David S. Miller b6b2fed1f4 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 <davem@davemloft.net>
2008-07-21 10:10:48 -07:00
..
2008-05-14 19:23:27 -05:00
2008-07-21 10:10:48 -07:00
2008-07-16 20:31:16 -07:00
2008-07-20 21:18:26 -07:00
2008-07-20 10:18:44 -07:00
2008-07-05 21:25:39 -07:00
2008-07-08 03:23:36 -07:00
2008-06-11 21:00:38 -07:00