]> git.baikalelectronics.ru Git - kernel.git/commit
net: use mptcp setsockopt function for SOL_SOCKET on mptcp sockets
authorFlorian Westphal <fw@strlen.de>
Sat, 4 Jul 2020 23:30:15 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jul 2020 00:56:22 +0000 (17:56 -0700)
commite03b61f4e75eb7a234bf6eca594ece994c327574
tree748a717768cd39a766c5988cb13f19c7a0dab440
parentde172c991a55ef988e9e8ce211c64b220249f23e
net: use mptcp setsockopt function for SOL_SOCKET on mptcp sockets

setsockopt(mptcp_fd, SOL_SOCKET, ...)...  appears to work (returns 0),
but it has no effect -- this is because the MPTCP layer never has a
chance to copy the settings to the subflow socket.

Skip the generic handling for the mptcp case and instead call the
mptcp specific handler instead for SOL_SOCKET too.

Next patch adds more specific handling for SOL_SOCKET to mptcp.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c
net/socket.c