diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2007-02-22 01:59:58 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:02 -0400 |
commit | bdaae17da81db79b9aa4dfbf43305cfeef64f6a8 (patch) | |
tree | 5dce126ae84073646c15417c30bd1b6b13660784 /include/net | |
parent | 9ead9a1d385ae2c52a6dcf2828d84ce66be04fc2 (diff) |
[TCP] FRTO: Moved tcp_use_frto from tcp.h to tcp_input.c
In addition, removed inline.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 5c472f255b77..572a77bb6907 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -341,6 +341,7 @@ extern struct sock * tcp_check_req(struct sock *sk,struct sk_buff *skb, | |||
341 | extern int tcp_child_process(struct sock *parent, | 341 | extern int tcp_child_process(struct sock *parent, |
342 | struct sock *child, | 342 | struct sock *child, |
343 | struct sk_buff *skb); | 343 | struct sk_buff *skb); |
344 | extern int tcp_use_frto(const struct sock *sk); | ||
344 | extern void tcp_enter_frto(struct sock *sk); | 345 | extern void tcp_enter_frto(struct sock *sk); |
345 | extern void tcp_enter_loss(struct sock *sk, int how); | 346 | extern void tcp_enter_loss(struct sock *sk, int how); |
346 | extern void tcp_clear_retrans(struct tcp_sock *tp); | 347 | extern void tcp_clear_retrans(struct tcp_sock *tp); |
@@ -1033,19 +1034,6 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int | |||
1033 | 1034 | ||
1034 | #define TCP_CHECK_TIMER(sk) do { } while (0) | 1035 | #define TCP_CHECK_TIMER(sk) do { } while (0) |
1035 | 1036 | ||
1036 | static inline int tcp_use_frto(const struct sock *sk) | ||
1037 | { | ||
1038 | const struct tcp_sock *tp = tcp_sk(sk); | ||
1039 | |||
1040 | /* F-RTO must be activated in sysctl and there must be some | ||
1041 | * unsent new data, and the advertised window should allow | ||
1042 | * sending it. | ||
1043 | */ | ||
1044 | return (sysctl_tcp_frto && sk->sk_send_head && | ||
1045 | !after(TCP_SKB_CB(sk->sk_send_head)->end_seq, | ||
1046 | tp->snd_una + tp->snd_wnd)); | ||
1047 | } | ||
1048 | |||
1049 | static inline void tcp_mib_init(void) | 1037 | static inline void tcp_mib_init(void) |
1050 | { | 1038 | { |
1051 | /* See RFC 2012 */ | 1039 | /* See RFC 2012 */ |