OSDN Git Service

mptcp: add SNDTIMEO setsockopt support
authorGeliang Tang <geliang.tang@suse.com>
Wed, 16 Feb 2022 02:11:23 +0000 (18:11 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 04:52:03 +0000 (20:52 -0800)
commitd6ab5ea2a38487aceb57a3ae000479407252a5dd
treef85cc2acd866a4e21aba446b90c7b9915cb4f223
parent8c16baa51beb50e091f6652c47fc1c8501b93611
mptcp: add SNDTIMEO setsockopt support

Add setsockopt support for SO_SNDTIMEO_OLD and SO_SNDTIMEO_NEW to fix this
error reported by the mptcp bpf selftest:

 (network_helpers.c:64: errno: Operation not supported) Failed to set SO_SNDTIMEO
 test_mptcp:FAIL:115

 All error logs:

 (network_helpers.c:64: errno: Operation not supported) Failed to set SO_SNDTIMEO
 test_mptcp:FAIL:115
 Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/sockopt.c