diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-11 08:28:12 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-11 08:28:12 (GMT) |
commit | cd0893369ca85fd11bc517081b2d9079d2ef2f90 (patch) | |
tree | e2f46e4b4270c7403a895339df93d9bbefb7c363 /include/net/dn_fib.h | |
parent | d84e0bd7971eb8357c700151ee4e8e4101ee65fa (diff) | |
download | linux-cd0893369ca85fd11bc517081b2d9079d2ef2f90.tar.xz |
neigh: Store hash shift instead of mask.
And mask the hash function result by simply shifting
down the "->hash_shift" most significant bits.
Currently which bits we use is arbitrary since jhash
produces entropy evenly across the whole hash function
result.
But soon we'll be using universal hashing functions,
and in those cases more entropy exists in the higher
bits than the lower bits, because they use multiplies.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dn_fib.h')
0 files changed, 0 insertions, 0 deletions