aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorYuchung Cheng <ycheng@google.com>2012-07-19 02:43:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-19 13:55:36 -0400
commit1fe4c481ba637660793217769695c146a037bd54 (patch)
treed90f9708cd6a291988b198ade7daf0d9f58c34cf /include/net/tcp.h
parent2100c8d2d9db23c0a09901a782bb4e3b21bee298 (diff)
net-tcp: Fast Open client - cookie cache
With help from Eric Dumazet, add Fast Open metrics in tcp metrics cache. The basic ones are MSS and the cookies. Later patch will cache more to handle unfriendly middleboxes. Signed-off-by: Yuchung Cheng <ycheng@google.com> Acked-by: Eric Dumazet <edumazet@google.com> 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 5aed3718fde8..e601da197361 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -405,6 +405,10 @@ extern void tcp_metrics_init(void);
405extern bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst, bool paws_check); 405extern bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst, bool paws_check);
406extern bool tcp_remember_stamp(struct sock *sk); 406extern bool tcp_remember_stamp(struct sock *sk);
407extern bool tcp_tw_remember_stamp(struct inet_timewait_sock *tw); 407extern bool tcp_tw_remember_stamp(struct inet_timewait_sock *tw);
408extern void tcp_fastopen_cache_get(struct sock *sk, u16 *mss,
409 struct tcp_fastopen_cookie *cookie);
410extern void tcp_fastopen_cache_set(struct sock *sk, u16 mss,
411 struct tcp_fastopen_cookie *cookie);
408extern void tcp_fetch_timewait_stamp(struct sock *sk, struct dst_entry *dst); 412extern void tcp_fetch_timewait_stamp(struct sock *sk, struct dst_entry *dst);
409extern void tcp_disable_fack(struct tcp_sock *tp); 413extern void tcp_disable_fack(struct tcp_sock *tp);
410extern void tcp_close(struct sock *sk, long timeout); 414extern void tcp_close(struct sock *sk, long timeout);