diff options
author | Poorva Sonparote <psonparo@redhat.com> | 2021-11-19 21:41:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-20 15:11:00 +0100 |
commit | 4f47d5d507d6f211ebceac76a5f0b83c2eae154b (patch) | |
tree | 121721fcabe842999f28d8283d85d7e7605b5017 /net/ipv4/ip_sockglue.c | |
parent | Merge branch 'dev_addr-const' (diff) | |
download | linux-4f47d5d507d6f211ebceac76a5f0b83c2eae154b.tar.xz linux-4f47d5d507d6f211ebceac76a5f0b83c2eae154b.zip |
ipv4: Exposing __ip_sock_set_tos() in ip.h
Making the static function __ip_sock_set_tos() from net/ipv4/ip_sockglue.c
accessible by declaring it in include/net/ip.h
The reason for doing this is to use this function to set IP_TOS value in
mptcp_setsockopt() without the lock.
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 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 38d29b175ca6..445a9ecaefa1 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -576,7 +576,7 @@ out: return err; } -static void __ip_sock_set_tos(struct sock *sk, int val) +void __ip_sock_set_tos(struct sock *sk, int val) { if (sk->sk_type == SOCK_STREAM) { val &= ~INET_ECN_MASK; |