mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
sctp: use time_before or time_after for comparing jiffies
The functions time_before or time_after are more robust for comparing jiffies against other values. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c6db93a58f
commit
f61f6f82c9
2 changed files with 6 additions and 4 deletions
|
@ -428,7 +428,8 @@ void sctp_retransmit_mark(struct sctp_outq *q,
|
|||
* retransmitting due to T3 timeout.
|
||||
*/
|
||||
if (reason == SCTP_RTXR_T3_RTX &&
|
||||
(jiffies - chunk->sent_at) < transport->last_rto)
|
||||
time_before(jiffies, chunk->sent_at +
|
||||
transport->last_rto))
|
||||
continue;
|
||||
|
||||
/* RFC 2960 6.2.1 Processing a Received SACK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue