Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102154409
D33979.id101921.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33979.id101921.diff
View Options
Index: sys/netinet/tcp_input.c
===================================================================
--- sys/netinet/tcp_input.c
+++ sys/netinet/tcp_input.c
@@ -1648,8 +1648,10 @@
to.to_tsecr -= tp->ts_offset;
if (TSTMP_GT(to.to_tsecr, tcp_ts_getticks()))
to.to_tsecr = 0;
- else if (tp->t_flags & TF_PREVVALID &&
- tp->t_badrxtwin != 0 && SEQ_LT(to.to_tsecr, tp->t_badrxtwin))
+ else if (tp->t_rxtshift == 1 &&
+ tp->t_flags & TF_PREVVALID &&
+ tp->t_badrxtwin != 0 &&
+ TSTMP_LT(to.to_tsecr, tp->t_badrxtwin))
cc_cong_signal(tp, th, CC_RTO_ERR);
}
/*
@@ -1806,7 +1808,8 @@
if ((to.to_flags & TOF_TS) == 0 &&
tp->t_rxtshift == 1 &&
tp->t_flags & TF_PREVVALID &&
- (int)(ticks - tp->t_badrxtwin) < 0) {
+ tp->t_badrxtwin != 0 &&
+ TSTMP_LT(ticks, tp->t_badrxtwin)) {
cc_cong_signal(tp, th, CC_RTO_ERR);
}
@@ -2883,8 +2886,9 @@
*/
if (tp->t_rxtshift == 1 &&
tp->t_flags & TF_PREVVALID &&
- tp->t_badrxtwin &&
- SEQ_LT(to.to_tsecr, tp->t_badrxtwin))
+ tp->t_badrxtwin != 0 &&
+ to.to_flags & TOF_TS &&
+ TSTMP_LT(to.to_tsecr, tp->t_badrxtwin))
cc_cong_signal(tp, th, CC_RTO_ERR);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 7:18 AM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14515738
Default Alt Text
D33979.id101921.diff (1 KB)
Attached To
Mode
D33979: Only rewind erraneous RTO when previous values are truly valid
Attached
Detach File
Event Timeline
Log In to Comment