ipv4: add ip_sock_set_mtu_discover
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:29 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:45 +0000 (11:11 -0700)
commit2de569bda2a66d1308ad3f205bb29cf4f95f5636
treeefe6912815210ff223b905d3c08cab3824fa262b
parentdb45c0ef258ef6c7ef3c1b8ea9e06e133e083c27
ipv4: add ip_sock_set_mtu_discover

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

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com> [rxrpc bits]
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_sockglue.c
net/rxrpc/local_object.c
net/rxrpc/output.c