diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-06-22 14:04:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-22 11:28:51 -0700 |
commit | d1e462a7a5f359cbb9a0e8fbfafcfb6657034105 (patch) | |
tree | 07e139a19613cfa7e4dacc0435913ad6b1022644 /include/net/netns | |
parent | 745a32117b5a0799ce1dd28d5a74dc2b7bf37692 (diff) | |
download | linux-stable-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.tar.gz linux-stable-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.tar.bz2 linux-stable-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.zip |
sctp: add probe_interval in sysctl and sock/asoc/transport
PLPMTUD can be enabled by doing 'sysctl -w net.sctp.probe_interval=n'.
'n' is the interval for PLPMTUD probe timer in milliseconds, and it
can't be less than 5000 if it's not 0.
All asoc/transport's PLPMTUD in a new socket will be enabled by default.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/sctp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h index a0f315effa94..40240722cdca 100644 --- a/include/net/netns/sctp.h +++ b/include/net/netns/sctp.h @@ -84,6 +84,9 @@ struct netns_sctp { /* HB.interval - 30 seconds */ unsigned int hb_interval; + /* The interval for PLPMTUD probe timer */ + unsigned int probe_interval; + /* Association.Max.Retrans - 10 attempts * Path.Max.Retrans - 5 attempts (per destination address) * Max.Init.Retransmits - 8 attempts |