soreuseport: Fix TCP listener hash collision
authorCraig Gallek <kraig@google.com>
Thu, 28 Apr 2016 23:24:32 +0000 (19:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 May 2016 23:36:54 +0000 (19:36 -0400)
commit90e5d0db2b221f0cbbb91e9e61fdb7dbb9e1afc2
treebe89eb4366ed684bf7db2fbb7c1ea8521e7c985a
parent018f8258582381bcce484312f0e9ec2970d0383e
soreuseport: Fix TCP listener hash collision

I forgot to include a check for listener port equality when deciding
if two sockets should belong to the same reuseport group.  This was
not caught previously because it's only necessary when two listening
sockets for the same user happen to hash to the same listener bucket.
The same error does not exist in the UDP path.

Fixes: c125e80b8868("soreuseport: fast reuseport TCP socket selection")
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_hashtables.c