summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorDavid S. Miller2012-07-10 09:49:14 +0200
committerDavid S. Miller2012-07-11 07:39:57 +0200
commit51c5d0c4b169bf762f09e0d5b283a7f0b2a45739 (patch)
tree9dd99b27be4dc469954a2d67515593c9f71cbcd0 /include/net/tcp.h
parenttcp: Abstract back handling peer aliveness test into helper function. (diff)
downloadkernel-qcow2-linux-51c5d0c4b169bf762f09e0d5b283a7f0b2a45739.tar.gz
kernel-qcow2-linux-51c5d0c4b169bf762f09e0d5b283a7f0b2a45739.tar.xz
kernel-qcow2-linux-51c5d0c4b169bf762f09e0d5b283a7f0b2a45739.zip
tcp: Maintain dynamic metrics in local cache.
Maintain a local hash table of TCP dynamic metrics blobs. Computed TCP metrics are no longer maintained in the route metrics. The table uses RCU and an extremely simple hash so that it has low latency and low overhead. A simple hash is legitimate because we only make metrics blobs for fully established connections. Some tweaking of the default hash table sizes, metric timeouts, and the hash chain length limit certainly could use some tweaking. But the basic design seems sound. With help from Eric Dumazet and Joe Perches. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 5478356ea8c5..0900d63d1627 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -389,6 +389,7 @@ extern void tcp_enter_loss(struct sock *sk, int how);
extern void tcp_clear_retrans(struct tcp_sock *tp);
extern void tcp_update_metrics(struct sock *sk);
extern void tcp_init_metrics(struct sock *sk);
+extern void tcp_metrics_init(void);
extern bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst);
extern void tcp_disable_fack(struct tcp_sock *tp);
extern void tcp_close(struct sock *sk, long timeout);