]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce69a4263fb8c595fd217f94825e842dd8b6bdd9
treec0aba9d55ae1740be1c7fbbbc30f30e68862e071
parent2d21a01298b210b680898bb82ea6d1c1aa805597
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