net: introduce and use custom sockopt socket flag
authorPaolo Abeni <pabeni@redhat.com>
Thu, 20 Oct 2022 17:48:51 +0000 (19:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2022 09:52:50 +0000 (10:52 +0100)
commita5ef058dc4d9a3e60d1808a0700e18e0e37e408e
tree2cda419cd35a4ed16b361aeb82b25a5f55675a0a
parentea5ed0f00b07d5aba09189729d54751c98494f25
net: introduce and use custom sockopt socket flag

We will soon introduce custom setsockopt for UDP sockets, too.
Instead of doing even more complex arbitrary checks inside
sock_use_custom_sol_socket(), add a new socket flag and set it
for the relevant socket types (currently only MPTCP).

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
net/mptcp/protocol.c
net/socket.c