mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCTP]: Remove multiple levels of msecs to jiffies conversions.
The SCTP sysctl entries are displayed in milliseconds, but stored internally in jiffies. This results in multiple levels of msecs to jiffies conversion and as a result produces a truncation error. This patch makes things consistent in that we store and display defaults in milliseconds and only convert once for use by association. This patch also adds some sane min/max values so that we don't go off the deep end. Signed-off-by: Vladislav 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:
parent
ce556b3a59
commit
3fd091e73b
6 changed files with 84 additions and 100 deletions
|
@ -1049,7 +1049,7 @@ SCTP_STATIC __init int sctp_init(void)
|
|||
sctp_rto_beta = SCTP_RTO_BETA;
|
||||
|
||||
/* Valid.Cookie.Life - 60 seconds */
|
||||
sctp_valid_cookie_life = 60 * HZ;
|
||||
sctp_valid_cookie_life = SCTP_DEFAULT_COOKIE_LIFE;
|
||||
|
||||
/* Whether Cookie Preservative is enabled(1) or not(0) */
|
||||
sctp_cookie_preserve_enable = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue