git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ee841
)
net: Improve simple_tx_hash().
author
David S. Miller
<davem@davemloft.net>
Mon, 21 Jul 2008 16:48:06 +0000
(09:48 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Jul 2008 17:10:48 +0000
(10:10 -0700)
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>
No differences found