diff options
author | 2008-07-21 09:48:06 -0700 | |
---|---|---|
committer | 2008-07-21 10:10:48 -0700 | |
commit | b6b2fed1f4802b8fcc9d7548a8f785225d38f9a3 (patch) | |
tree | eebdc34112d617524b762c585b79b2eaab3386ae /include/linux/kernel.h | |
parent | pkt_sched: Remove unused variable skb in dev_deactivate_queue function. (diff) | |
download | wireguard-linux-b6b2fed1f4802b8fcc9d7548a8f785225d38f9a3.tar.xz wireguard-linux-b6b2fed1f4802b8fcc9d7548a8f785225d38f9a3.zip |
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>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions