diff options
author | Geliang Tang <geliang.tang@suse.com> | 2022-02-15 18:11:23 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-16 20:52:03 -0800 |
commit | d6ab5ea2a38487aceb57a3ae000479407252a5dd (patch) | |
tree | f85cc2acd866a4e21aba446b90c7b9915cb4f223 /net/mptcp | |
parent | 8c16baa51beb50e091f6652c47fc1c8501b93611 (diff) | |
download | linux-d6ab5ea2a38487aceb57a3ae000479407252a5dd.tar.gz linux-d6ab5ea2a38487aceb57a3ae000479407252a5dd.tar.bz2 linux-d6ab5ea2a38487aceb57a3ae000479407252a5dd.zip |
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>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/sockopt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mptcp/sockopt.c b/net/mptcp/sockopt.c index dacf3cee0027..f949d22f52bd 100644 --- a/net/mptcp/sockopt.c +++ b/net/mptcp/sockopt.c @@ -343,6 +343,8 @@ static int mptcp_setsockopt_sol_socket(struct mptcp_sock *msk, int optname, case SO_RCVLOWAT: case SO_RCVTIMEO_OLD: case SO_RCVTIMEO_NEW: + case SO_SNDTIMEO_OLD: + case SO_SNDTIMEO_NEW: case SO_BUSY_POLL: case SO_PREFER_BUSY_POLL: case SO_BUSY_POLL_BUDGET: |