• David S. Miller's avatar
    neigh: Store hash shift instead of mask. · cd089336
    David S. Miller authored
    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: default avatarDavid S. Miller <davem@davemloft.net>
    cd089336
neighbour.h 10.4 KB