diff options
author | stephen hemminger <shemminger@vyatta.com> | 2009-11-10 08:20:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-12 04:22:12 +0100 |
commit | 08e9897d512fe7a67e46209543b3815b57a36dc7 (patch) | |
tree | 0fad8d5d896a0b191f2df1425afa9565041dedae /net/decnet | |
parent | qlge: Change version to v1.00.00.23.00.00-01. (diff) | |
download | linux-08e9897d512fe7a67e46209543b3815b57a36dc7.tar.xz linux-08e9897d512fe7a67e46209543b3815b57a36dc7.zip |
netdev: fold name hash properly (v3)
The full_name_hash function does not produce well distributed values in
the lower bits, so most code uses hash_32() to fold it. This is really
a bug introduced when name hashing was added, back in 2.5 when I added
name hashing.
hash_32 is all that is needed since full_name_hash returns unsigned int
which is only 32 bits on 64 bit platforms.
Also, there is no point in using hash_32 on ifindex, because the is naturally
sequential and usually well distributed.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions