[SCTP] Make init & delayed sack timeouts configurable by user.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7a1af5d7bb
commit
2f85a42964
@@ -263,23 +263,11 @@ enum { SCTP_MIN_PMTU = 576 };
|
||||
enum { SCTP_MAX_DUP_TSNS = 16 };
|
||||
enum { SCTP_MAX_GABS = 16 };
|
||||
|
||||
/* Here we define the default timers. */
|
||||
/* Heartbeat interval - 30 secs */
|
||||
#define SCTP_DEFAULT_TIMEOUT_HEARTBEAT (30 * HZ)
|
||||
|
||||
/* cookie timer def = ? seconds */
|
||||
#define SCTP_DEFAULT_TIMEOUT_T1_COOKIE (3 * HZ)
|
||||
|
||||
/* init timer def = 3 seconds */
|
||||
#define SCTP_DEFAULT_TIMEOUT_T1_INIT (3 * HZ)
|
||||
|
||||
/* shutdown timer def = 300 ms */
|
||||
#define SCTP_DEFAULT_TIMEOUT_T2_SHUTDOWN ((300 * HZ) / 1000)
|
||||
|
||||
/* 0 seconds + RTO */
|
||||
#define SCTP_DEFAULT_TIMEOUT_HEARTBEAT (10 * HZ)
|
||||
|
||||
/* recv timer def = 200ms (in usec) */
|
||||
/* Delayed sack timer - 200ms */
|
||||
#define SCTP_DEFAULT_TIMEOUT_SACK ((200 * HZ) / 1000)
|
||||
#define SCTP_DEFAULT_TIMEOUT_SACK_MAX ((500 * HZ) / 1000) /* 500 ms */
|
||||
|
||||
/* RTO.Initial - 3 seconds
|
||||
* RTO.Min - 1 second
|
||||
|
@@ -161,6 +161,9 @@ extern struct sctp_globals {
|
||||
*/
|
||||
int sndbuf_policy;
|
||||
|
||||
/* Delayed SACK timeout 200ms default*/
|
||||
int sack_timeout;
|
||||
|
||||
/* HB.interval - 30 seconds */
|
||||
int hb_interval;
|
||||
|
||||
@@ -217,6 +220,7 @@ extern struct sctp_globals {
|
||||
#define sctp_sndbuf_policy (sctp_globals.sndbuf_policy)
|
||||
#define sctp_max_retrans_path (sctp_globals.max_retrans_path)
|
||||
#define sctp_max_retrans_init (sctp_globals.max_retrans_init)
|
||||
#define sctp_sack_timeout (sctp_globals.sack_timeout)
|
||||
#define sctp_hb_interval (sctp_globals.hb_interval)
|
||||
#define sctp_max_instreams (sctp_globals.max_instreams)
|
||||
#define sctp_max_outstreams (sctp_globals.max_outstreams)
|
||||
|
Reference in New Issue
Block a user