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>
This commit is contained in:

committed by
David S. Miller

parent
b82e8f31ac
commit
e575235fc6
@@ -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 |
|
||||
|
Reference in New Issue
Block a user