• E
    raw: use net_hash_mix() in hash function · 6579f5ba
    Eric Dumazet 提交于
    Some applications seem to rely on RAW sockets.
    
    If they use private netns, we can avoid piling all RAW
    sockets bound to a given protocol into a single bucket.
    
    Also place (struct raw_hashinfo).lock into its own
    cache line to limit false sharing.
    
    Alternative would be to have per-netns hashtables,
    but this seems too expensive for most netns
    where RAW sockets are not used.
    Signed-off-by: NEric Dumazet <edumazet@google.com>
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    6579f5ba
raw.h 2.5 KB