diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-06-11 18:19:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 12:23:17 -0700 |
commit | e575235fc6026bb75e166ff68f84118c62d73f94 (patch) | |
tree | 299131847e629caa9201f9ba8066302864e0f22d /net/sctp/transport.c | |
parent | b82e8f31acc7d799638692e65ff017f3e1b6a43d (diff) | |
download | linux-e575235fc6026bb75e166ff68f84118c62d73f94.tar.gz linux-e575235fc6026bb75e166ff68f84118c62d73f94.tar.bz2 linux-e575235fc6026bb75e166ff68f84118c62d73f94.zip |
net: sctp: migrate most recently used transport to ktime
Be more precise in transport path selection and use ktime
helpers instead of jiffies to compare and pick the better
primary and secondary recently used transports. This also
avoids any side-effects during a possible roll-over, and
could lead to better path decision-making.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/transport.c')
-rw-r--r-- | net/sctp/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c index 1d348d15b33d..7dd672fa651f 100644 --- a/net/sctp/transport.c +++ b/net/sctp/transport.c @@ -72,7 +72,7 @@ static struct sctp_transport *sctp_transport_init(struct net *net, */ peer->rto = msecs_to_jiffies(net->sctp.rto_initial); - peer->last_time_heard = jiffies; + peer->last_time_heard = ktime_get(); peer->last_time_ecne_reduced = jiffies; peer->param_flags = SPP_HB_DISABLE | |