aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-09 19:07:30 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-10 23:31:36 -0400
commit4aabd8ef8c43677cfee3e1e36c5a79edddb41942 (patch)
treea826352ad00ffcc1632edecfe4ebd77db1301e4b /include/net/tcp.h
parentad7eee98bef92481581060801bdfd1b25a6106c0 (diff)
tcp: Move dynamnic metrics handling into seperate file.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 53fb7d814170..98ca797001a2 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -388,6 +388,8 @@ extern void tcp_enter_frto(struct sock *sk);
388extern void tcp_enter_loss(struct sock *sk, int how); 388extern void tcp_enter_loss(struct sock *sk, int how);
389extern void tcp_clear_retrans(struct tcp_sock *tp); 389extern void tcp_clear_retrans(struct tcp_sock *tp);
390extern void tcp_update_metrics(struct sock *sk); 390extern void tcp_update_metrics(struct sock *sk);
391extern void tcp_init_metrics(struct sock *sk);
392extern void tcp_disable_fack(struct tcp_sock *tp);
391extern void tcp_close(struct sock *sk, long timeout); 393extern void tcp_close(struct sock *sk, long timeout);
392extern void tcp_init_sock(struct sock *sk); 394extern void tcp_init_sock(struct sock *sk);
393extern unsigned int tcp_poll(struct file * file, struct socket *sock, 395extern unsigned int tcp_poll(struct file * file, struct socket *sock,
@@ -556,6 +558,8 @@ static inline u32 __tcp_set_rto(const struct tcp_sock *tp)
556 return (tp->srtt >> 3) + tp->rttvar; 558 return (tp->srtt >> 3) + tp->rttvar;
557} 559}
558 560
561extern void tcp_set_rto(struct sock *sk);
562
559static inline void __tcp_fast_path_on(struct tcp_sock *tp, u32 snd_wnd) 563static inline void __tcp_fast_path_on(struct tcp_sock *tp, u32 snd_wnd)
560{ 564{
561 tp->pred_flags = htonl((tp->tcp_header_len << 26) | 565 tp->pred_flags = htonl((tp->tcp_header_len << 26) |