diff options
author | Rick Jones <rick.jones2@hp.com> | 2015-07-21 19:14:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-22 01:36:33 -0400 |
commit | b56ea2985d389a3676638203323ebe22c261b7fe (patch) | |
tree | b302fea7a9b62c0d8bddf6a9342dfcecf4695a8b /net/ipv4/tcp_input.c | |
parent | 0b2c2a931a051e75f9df429b520bb2c2f2bb056b (diff) |
net: track success and failure of TCP PMTU probing
Track success and failure of TCP PMTU probing.
Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 1578fc2a6f39..cda3ffedadb6 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2593,6 +2593,7 @@ static void tcp_mtup_probe_failed(struct sock *sk) | |||
2593 | 2593 | ||
2594 | icsk->icsk_mtup.search_high = icsk->icsk_mtup.probe_size - 1; | 2594 | icsk->icsk_mtup.search_high = icsk->icsk_mtup.probe_size - 1; |
2595 | icsk->icsk_mtup.probe_size = 0; | 2595 | icsk->icsk_mtup.probe_size = 0; |
2596 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPMTUPFAIL); | ||
2596 | } | 2597 | } |
2597 | 2598 | ||
2598 | static void tcp_mtup_probe_success(struct sock *sk) | 2599 | static void tcp_mtup_probe_success(struct sock *sk) |
@@ -2612,6 +2613,7 @@ static void tcp_mtup_probe_success(struct sock *sk) | |||
2612 | icsk->icsk_mtup.search_low = icsk->icsk_mtup.probe_size; | 2613 | icsk->icsk_mtup.search_low = icsk->icsk_mtup.probe_size; |
2613 | icsk->icsk_mtup.probe_size = 0; | 2614 | icsk->icsk_mtup.probe_size = 0; |
2614 | tcp_sync_mss(sk, icsk->icsk_pmtu_cookie); | 2615 | tcp_sync_mss(sk, icsk->icsk_pmtu_cookie); |
2616 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPMTUPSUCCESS); | ||
2615 | } | 2617 | } |
2616 | 2618 | ||
2617 | /* Do a simple retransmit without using the backoff mechanisms in | 2619 | /* Do a simple retransmit without using the backoff mechanisms in |