]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCTP]: Remove multiple levels of msecs to jiffies conversions.
authorVladislav Yasevich <vladislav.yasevich@hp.com>
Tue, 22 Aug 2006 20:29:17 +0000 (13:29 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:55:39 +0000 (14:55 -0700)
commit3fd091e73b81f131e1567c4d4a1ec042940bf2f7
treec08ebbeee329bbc31cb578db1dddde7394431f5f
parentce556b3a591fff3bebf8c5590a86aa98e1b2f153
[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>
include/net/sctp/constants.h
include/net/sctp/structs.h
net/sctp/protocol.c
net/sctp/socket.c
net/sctp/sysctl.c
net/sctp/transport.c