From: Neal Cardwell Date: Tue, 20 Sep 2016 03:39:19 +0000 (-0400) Subject: tcp: export tcp_mss_to_mtu() for congestion control modules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=556c6b46d194cc0dbb6a5b22f1d2bbc699c86d8e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tcp: export tcp_mss_to_mtu() for congestion control modules Export tcp_mss_to_mtu(), so that congestion control modules can use this to help calculate a pacing rate. Signed-off-by: Van Jacobson Signed-off-by: Neal Cardwell Signed-off-by: Yuchung Cheng Signed-off-by: Nandita Dukkipati Signed-off-by: Eric Dumazet Signed-off-by: Soheil Hassas Yeganeh Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 0bf3d481fa85..7d025a7804b5 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1362,6 +1362,7 @@ int tcp_mss_to_mtu(struct sock *sk, int mss) } return mtu; } +EXPORT_SYMBOL(tcp_mss_to_mtu); /* MTU probing init per socket */ void tcp_mtup_init(struct sock *sk)