Merge branch 'tcp-2nd-listener-hash'
Martin KaFai Lau says:
====================
tcp: Add a 2nd listener hashtable (port+addr)
This patch set adds a 2nd listener hashtable. It is to resolve
the performance issue when a process is listening at many IP
addresses with the same port (e.g. [IP1]:443, [IP2]:443... [IPN]:443)
v2:
- Move the new lhash2 and lhash2_mask before the existing
listening_hash to avoid adding another cacheline
to inet_hashinfo (Suggested by Eric Dumazet, Thanks!)
- I take this chance to plug an existing 4 bytes hole while
adding 'unsigned int lhash2_mask'.
- Add some comments about lhash2 in inet_hashtables.h
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/inet_connection_sock.h 2 additions, 0 deletionsinclude/net/inet_connection_sock.h
- include/net/inet_hashtables.h 23 additions, 6 deletionsinclude/net/inet_hashtables.h
- include/net/ip.h 9 additions, 0 deletionsinclude/net/ip.h
- include/net/ipv6.h 17 additions, 0 deletionsinclude/net/ipv6.h
- net/ipv4/inet_hashtables.c 165 additions, 8 deletionsnet/ipv4/inet_hashtables.c
- net/ipv4/tcp.c 3 additions, 0 deletionsnet/ipv4/tcp.c
- net/ipv4/udp.c 8 additions, 14 deletionsnet/ipv4/udp.c
- net/ipv6/inet6_hashtables.c 66 additions, 0 deletionsnet/ipv6/inet6_hashtables.c
- net/ipv6/udp.c 8 additions, 24 deletionsnet/ipv6/udp.c
Loading
Please register or sign in to comment