• Kuniyuki Iwashima's avatar
    tcp: Link bhash2 to bhash. · 822fb91f
    Kuniyuki Iwashima authored
    bhash2 added a new member sk_bind2_node in struct sock to link
    sockets to bhash2 in addition to bhash.
    
    bhash is still needed to search conflicting sockets efficiently
    from a port for the wildcard address.  However, bhash itself need
    not have sockets.
    
    If we link each bhash2 bucket to the corresponding bhash bucket,
    we can iterate the same set of the sockets from bhash2 via bhash.
    
    This patch links bhash2 to bhash only, and the actual use will be
    in the later patches.  Finally, we will remove sk_bind2_node.
    Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
    Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    822fb91f
inet_hashtables.h 16.7 KB