-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Comments
@spoorva is working on this |
@spoorva : please assign yourself on this ticket once you joined mptcp-upstream-devs team. |
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]>
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]>
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]>
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]>
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]>
Adding the packetdrill test for the above here -
|
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]>
FYI, the CI found some issues with the last patch you sent: |
Looking into it. |
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]>
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]>
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]>
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]>
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]>
@spoorva before closing this ticket, may you create a PR to add your new test script in our packetdrill repo please? |
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
add kernel support for
setsockopt(SOL_IP)
, sincemptcp_supported_sockopt()
returnstrue
but then nobody handlesSOL_IP
inmptcp_setsockopt()
.implement support for IP_TOS and assess the correct behavior using packetdrill
The text was updated successfully, but these errors were encountered: