diff options
| author | Poorva Sonparote <psonparo@redhat.com> | 2021-11-19 12:41:35 -0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-11-20 14:11:00 +0000 |
| commit | ffcacff87cd65dc09b97982acf3a771713983a28 (patch) | |
| tree | 1dfdefccfbc329082b83ecf1a195949d1c360003 /lib/mpi/mpi-cmp.c | |
| parent | 4f47d5d507d6f211ebceac76a5f0b83c2eae154b (diff) | |
mptcp: Support for IP_TOS for MPTCP setsockopt()
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 -
https://github.com/multipath-tcp/mptcp_net-next/issues/220#issuecomment-947863717
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/220
Signed-off-by: Poorva Sonparote <psonparo@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
