diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-06-22 21:04:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-22 21:28:51 +0300 |
commit | d1e462a7a5f359cbb9a0e8fbfafcfb6657034105 (patch) | |
tree | 07e139a19613cfa7e4dacc0435913ad6b1022644 /net/sctp/socket.c | |
parent | 745a32117b5a0799ce1dd28d5a74dc2b7bf37692 (diff) | |
download | linux-d1e462a7a5f359cbb9a0e8fbfafcfb6657034105.tar.xz |
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 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index a79d193ff872..d2960ab665a5 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -4989,6 +4989,7 @@ static int sctp_init_sock(struct sock *sk) atomic_set(&sp->pd_mode, 0); skb_queue_head_init(&sp->pd_lobby); sp->frag_interleave = 0; + sp->probe_interval = net->sctp.probe_interval; /* Create a per socket endpoint structure. Even if we * change the data structure relationships, this may still |