]> 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)
commit901063bb92cf13b993363b9f3c6cf46a6b2c1528
treec0aba9d55ae1740be1c7fbbbc30f30e68862e071
parent6ee0b0694acea6a8df3086d8c09a9dc9053c258e
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