sock: struct proto hash function may error
authorCraig Gallek <kraig@google.com>
Wed, 10 Feb 2016 16:50:35 +0000 (11:50 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 08:54:14 +0000 (03:54 -0500)
commit086c653f5862591a9cfe2386f5650d03adacc33a
treec0aba9d55ae1740be1c7fbbbc30f30e68862e071
parent30c1de08dda9202699c1ddc7fd658693faf93bf2
sock: struct proto hash function may error

In order to support fast reuseport lookups in TCP, the hash function
defined in struct proto must be capable of returning an error code.
This patch changes the function signature of all related hash functions
to return an integer and handles or propagates this return value at
all call sites.

Signed-off-by: Craig Gallek <kraig@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
include/net/inet_hashtables.h
include/net/phonet/phonet.h
include/net/ping.h
include/net/raw.h
include/net/sock.h
include/net/udp.h
net/ieee802154/socket.c
net/ipv4/af_inet.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv6/af_inet6.c
net/phonet/socket.c
net/sctp/socket.c