Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for setsockopt(SOL_IP) #220

Closed
dcaratti opened this issue Jul 29, 2021 · 6 comments
Closed

support for setsockopt(SOL_IP) #220

dcaratti opened this issue Jul 29, 2021 · 6 comments

Comments

@dcaratti
Copy link
Contributor

add kernel support for setsockopt(SOL_IP), since mptcp_supported_sockopt() returns true but then nobody handles SOL_IP in mptcp_setsockopt().

implement support for IP_TOS and assess the correct behavior using packetdrill

@dcaratti
Copy link
Contributor Author

@spoorva is working on this

spoorva pushed a commit to spoorva/mptcp_net-next that referenced this issue Aug 3, 2021
@matttbe
Copy link
Member

matttbe commented Aug 4, 2021

@spoorva : please assign yourself on this ticket once you joined mptcp-upstream-devs team.

spoorva added a commit to spoorva/packetdrill that referenced this issue Aug 23, 2021
This sockopt was not validated before.
Currently not supported by MPTCP but it's implementation is in progress.
See issue multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
spoorva added a commit to spoorva/packetdrill that referenced this issue Aug 27, 2021
This sockopt was not validated before.
Currently not supported by MPTCP but it's implementation is in progress.
See issue multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
spoorva added a commit to spoorva/packetdrill that referenced this issue Aug 31, 2021
This sockopt was not validated before.
Currently not supported by MPTCP but it's implementation is in progress.
See issue multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
spoorva added a commit to spoorva/packetdrill that referenced this issue Sep 1, 2021
This sockopt was not validated before.
Currently not supported by MPTCP but it's implementation is in progress.
See issue multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
spoorva added a commit to spoorva/packetdrill that referenced this issue Sep 7, 2021
This sockopt was not validated before.
Currently not supported by MPTCP but it's implementation is in progress.
See issue multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
@spoorva
Copy link

spoorva commented Oct 20, 2021

Adding the packetdrill test for the above here -

--tolerance_usecs=100000
`../common/defaults.sh`
 
+0    `../common/client.sh`
 
+0.0    socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 7                          
+0.0    setsockopt(7, SOL_IP, IP_TOS, [4], 4) = 0                        
//+0.200  getsockopt(7, SOL_IP, IP_TOS, [4], [4]) = 0  
 
+0.0  fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
+0.0  fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
 
+0.0  connect(7, ..., ...) = -1  EINPROGRESS (Operation now in progress)
 
 
 
+0.0    > [tos 0x04]    addr[caddr0] > addr[saddr0]  S   0:0(0)                        <mss 1460, sackOK, TS val 4074410674 ecr 0,          nop, wscale 8, mpcapable v1 flags[flag_h] nokey>
 
+0.0    <                                            S.  0:0(0)      ack 1  win 65535  <mss 1460, sackOK, TS val 4074410674 ecr 4074410674, nop, wscale 8, mpcapable v1 flags[flag_h] key[skey=2]>
 
+0.0    > [tos 0x04]                                 .  1:1(0)      ack 1             <nop, nop,         TS val 4074410674 ecr 4074410674,                mpcapable v1 flags[flag_h] key[ckey, skey]>
 
//+0.2  getsockopt(7, SOL_IP, IP_TOS, [4], [4]) = 0
+0.0  fcntl(7, F_SETFL, O_RDWR) = 0   // set back to blocking
 
 +0.2    setsockopt(7, SOL_IP, IP_TOS, [4], 4) = 0
 
+1.0  write(7, ..., 2) = 2
+0.0    >  [tos 0x04]                             P.  1:3(2)      ack 1             <nop, nop, TS val 4074418292 ecr 4074410674,                        mpcapable v1 flags[flag_h] key[ckey, skey] mpcdatalen 2, nop, nop>
+0.0    <                                          .  1:1(0)      ack 3  win 256    <nop, nop, TS val 4074418293 ecr 4074418292,       add_address addr[saddr1] hmac=auto>
 
 +0.2    setsockopt(7, SOL_IP, IP_TOS, [4], 4) = 0
 
 
+0.0    >  [tos 0x04]               > addr[saddr1]  S   0:0(0)                        <mss 1460, sackOK, TS val 448955294 ecr 0,         nop, wscale 8, mp_join_syn     address_id=0 token=sha256_32(skey)>
+0.0    >  [tos 0x04]               > addr[saddr0]   .  3:3(0)      ack 1             <nop, nop,         TS val 448955294 ecr 448955294, add_address addr[saddr1] addr_echo>
+0.0    <                                           S.  0:0(0)      ack 1  win 65535  <mss 1460, sackOK, TS val 448955294 ecr 448955294, nop, wscale 8, mp_join_syn_ack address_id=1 sender_hmac=auto>
+0.0    >  [tos 0x04]                                .  1:1(0)      ack 1             <nop, nop,         TS val 448955294 ecr 448955294,                mp_join_ack                  sender_hmac=auto>
 
//+0.0    setsockopt(7, SOL_IP, IP_TOS, [4], 4) = 0
 
 
+0.1  close(7) = 0
 
+0.0    >   addr[caddr0] > addr[saddr0]   .  3:3(0)      ack 1    win 256         <nop, nop, TS val 4074418292 ecr 4074418293,dss dack4=1 dsn8=3 ssn=0 dll=1  nocs fin, nop, nop>
 
+0.0    >                                 .  1:1(0)      ack 1  win 256         <nop, nop, TS val 4074418292 ecr 4074418293,dss dack4=1 dsn8=3 ssn=0 dll=1  nocs fin, nop, nop>

fengguang pushed a commit to 0day-ci/linux that referenced this issue Oct 21, 2021
Hello!

I have been working on adding support for IP_TOS for setsockopt(). I
am attaching the packetdrill test and the patch but it  still won't set the TOS value
for the subflows that are created after the setsockopt() call.

multipath-tcp/mptcp_net-next#220 (comment)

Thanks,
Poorva

This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
multipath-tcp/mptcp_net-next#220

Currently, any new subflows that are created after the setsockopt()
call are not being updated with the set IP_TOS value.

Signed-off-by: Poorva Sonparote <[email protected]>
@matttbe
Copy link
Member

matttbe commented Oct 21, 2021

FYI, the CI found some issues with the last patch you sent:

@spoorva
Copy link

spoorva commented Oct 25, 2021

FYI, the CI found some issues with the last patch you sent:

* https://cirrus-ci.com/task/5316374168862720

* https://cirrus-ci.com/task/6442274075705344

Looking into it.

fengguang pushed a commit to 0day-ci/linux that referenced this issue Oct 25, 2021
This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
multipath-tcp/mptcp_net-next#220

Closes: multipath-tcp/mptcp_net-next#220

Signed-off-by: Poorva Sonparote <[email protected]>
fengguang pushed a commit to 0day-ci/linux that referenced this issue Oct 26, 2021
SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
multipath-tcp/mptcp_net-next#220

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
 __ip_sock_set_tos(ssk,..).
To set the value for all subflows associated, __ip_sock_set_tos(ssk,..) is
exposed in ip.h

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)
It has not been selftested because there's no support for IP_TOS in
getsockopt() yet.

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
fengguang pushed a commit to 0day-ci/linux that referenced this issue Oct 27, 2021
SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
multipath-tcp/mptcp_net-next#220

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
 __ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)
It has not been selftested because there's no support for IP_TOS in
getsockopt() yet.

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
fengguang pushed a commit to 0day-ci/linux that referenced this issue Oct 27, 2021
SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
multipath-tcp/mptcp_net-next#220

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Reported-by: kernel test robot <[email protected]>
Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
matttbe pushed a commit that referenced this issue Oct 28, 2021
SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)
#220

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
#220 (comment)

Reported-by: kernel test robot <[email protected]>
Closes: #220
Signed-off-by: Poorva Sonparote <[email protected]>
@matttbe
Copy link
Member

matttbe commented Oct 28, 2021

@spoorva before closing this ticket, may you create a PR to add your new test script in our packetdrill repo please?

q2ven pushed a commit to amazonlinux/linux that referenced this issue Sep 5, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Sep 5, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
abuehaze14 pushed a commit to amazonlinux/linux that referenced this issue Sep 6, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
hailmo-amzn pushed a commit to amazonlinux/linux that referenced this issue Sep 23, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
heynemax pushed a commit to amazonlinux/linux that referenced this issue Sep 23, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
heynemax pushed a commit to amazonlinux/linux that referenced this issue Sep 24, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Sep 24, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Sep 26, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Oct 3, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
prati0100 pushed a commit to amazonlinux/linux that referenced this issue Oct 7, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
prati0100 pushed a commit to amazonlinux/linux that referenced this issue Oct 8, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Oct 14, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
q2ven pushed a commit to amazonlinux/linux that referenced this issue Oct 16, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
puranjaymohan pushed a commit to amazonlinux/linux that referenced this issue Oct 22, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Oct 30, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Nov 23, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
mngyadam pushed a commit to amazonlinux/linux that referenced this issue Nov 27, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
q2ven pushed a commit to amazonlinux/linux that referenced this issue Nov 29, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Nov 29, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
abuehaze14 pushed a commit to amazonlinux/linux that referenced this issue Dec 3, 2024
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
hagarhem pushed a commit to amazonlinux/linux that referenced this issue Jan 7, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
mngyadam pushed a commit to amazonlinux/linux that referenced this issue Jan 8, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
abuehaze14 pushed a commit to amazonlinux/linux that referenced this issue Jan 10, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
abuehaze14 pushed a commit to amazonlinux/linux that referenced this issue Jan 10, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Jan 10, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Jan 10, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
mngyadam pushed a commit to amazonlinux/linux that referenced this issue Jan 10, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Jan 12, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
shaoyingxu pushed a commit to amazonlinux/linux that referenced this issue Jan 13, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
mngyadam pushed a commit to amazonlinux/linux that referenced this issue Jan 14, 2025
commit ffcacff upstream.

SOL_IP provides a way to configure network layer attributes in a
socket. This patch adds support for IP_TOS for setsockopt(.. ,SOL_IP, ..)

Support for SOL_IP is added in mptcp_setsockopt() and IP_TOS is handled in
a private function. The idea here is to take in the value passed for IP_TOS
and set it to the current subflow, open subflows as well new subflows that
might be created after the initial call to setsockopt(). This sync is done
using sync_socket_options(.., ssk) and setting the value of tos using
__ip_sock_set_tos(ssk,..).

The patch has been tested using the packetdrill script here -
multipath-tcp/mptcp_net-next#220 (comment)

Closes: multipath-tcp/mptcp_net-next#220
Signed-off-by: Poorva Sonparote <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
(cherry picked from commit ffcacff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants