Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135951452
D18032.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D18032.diff
View Options
Index: head/sys/netinet/tcp_stacks/rack.c
===================================================================
--- head/sys/netinet/tcp_stacks/rack.c
+++ head/sys/netinet/tcp_stacks/rack.c
@@ -8493,9 +8493,7 @@
pass, rsm);
if ((tp->t_flags & TF_FORCEDATA) == 0 ||
(rack->rc_in_persist == 0)) {
-#ifdef NETFLIX_STATS
tcp_seq startseq = tp->snd_nxt;
-#endif
/*
* Advance snd_nxt over sequence space of this segment.
@@ -8527,6 +8525,17 @@
tp->t_acktime = ticks;
}
tp->snd_max = tp->snd_nxt;
+ /*
+ * Time this transmission if not a retransmission and
+ * not currently timing anything.
+ * This is only relevant in case of switching back to
+ * the base stack.
+ */
+ if (tp->t_rtttime == 0) {
+ tp->t_rtttime = ticks;
+ tp->t_rtseq = startseq;
+ TCPSTAT_INC(tcps_segstimed);
+ }
#ifdef NETFLIX_STATS
if (!(tp->t_flags & TF_GPUTINPROG) && len) {
tp->t_flags |= TF_GPUTINPROG;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 15, 12:11 PM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25325946
Default Alt Text
D18032.diff (952 B)
Attached To
Mode
D18032: Support RTT measurement even if switching from the rack stack to the base stack
Attached
Detach File
Event Timeline
Log In to Comment