diff options
author | Fan Du <fan.du@intel.com> | 2015-03-06 06:18:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-06 22:57:42 +0300 |
commit | 05cbc0db03e82128f2e7e353d4194dd24a1627fe (patch) | |
tree | 33c79cec0d026feb0435042794ca4c4ef9e556ce /include/net/tcp.h | |
parent | 6b58e0a5f32dedb609438bb9c9c82aa6e23381f2 (diff) | |
download | linux-05cbc0db03e82128f2e7e353d4194dd24a1627fe.tar.xz |
ipv4: Create probe timer for tcp PMTU as per RFC4821
As per RFC4821 7.3. Selecting Probe Size, a probe timer should
be armed once probing has converged. Once this timer expired,
probing again to take advantage of any path PMTU change. The
recommended probing interval is 10 minutes per RFC1981. Probing
interval could be sysctled by sysctl_tcp_probe_interval.
Eric Dumazet suggested to implement pseudo timer based on 32bits
jiffies tcp_time_stamp instead of using classic timer for such
rare event.
Signed-off-by: Fan Du <fan.du@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 1ad82e334e27..2e11e38205c2 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -67,6 +67,9 @@ void tcp_time_wait(struct sock *sk, int state, int timeo); /* The least MTU to use for probing */ #define TCP_BASE_MSS 1024 +/* probing interval, default to 10 minutes as per RFC4821 */ +#define TCP_PROBE_INTERVAL 600 + /* Specify interval when tcp mtu probing will stop */ #define TCP_PROBE_THRESHOLD 8 |