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-Tag: v5.15~12760^2~120^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=556c6b46d194cc0dbb6a5b22f1d2bbc699c86d8e;p=platform%2Fkernel%2Flinux-starfive.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 0bf3d48..7d025a7 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)