net: add sock_set_keepalive
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:15 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commitce3d9544cecacd40389c399d2b7ca31acc533b70
tree188689107da003fa8137181ab48f6ad973414acc
parent783da70e83967efeacf3c02c9dcfdc2b17bd62eb
net: add sock_set_keepalive

Add a helper to directly set the SO_KEEPALIVE sockopt from kernel space
without going through a fake uaccess.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/dlm/lowcomms.c
include/net/sock.h
net/core/sock.c
net/rds/tcp_listen.c
net/sunrpc/xprtsock.c