mptcp: cleanup SOL_TCP handling
authorPaolo Abeni <pabeni@redhat.com>
Fri, 1 Mar 2024 17:43:47 +0000 (18:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 10:50:28 +0000 (10:50 +0000)
commit7f71a337b5152ea0e7bef408d1af53778a919316
tree43b325b00ed7acf5463549c7dc424c6808bc6161
parent29b5e5ef87397963ca38d3eec0d296ad1c979bbc
mptcp: cleanup SOL_TCP handling

Most TCP-level socket options get an integer from user space, and
set the corresponding field under the msk-level socket lock.

Reduce the code duplication moving such operations in the common code.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/sockopt.c