ipv4: Exposing __ip_sock_set_tos() in ip.h
authorPoorva Sonparote <psonparo@redhat.com>
Fri, 19 Nov 2021 20:41:34 +0000 (12:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Nov 2021 14:11:00 +0000 (14:11 +0000)
commit4f47d5d507d6f211ebceac76a5f0b83c2eae154b
tree121721fcabe842999f28d8283d85d7e7605b5017
parent979594c5ff7b82e4787c8491680a2658bd88b780
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>
include/net/ip.h
net/ipv4/ip_sockglue.c