Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103349230
D44157.id135224.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
D44157.id135224.diff
View Options
Index: sys/netinet/tcp_hpts.h
===================================================================
--- sys/netinet/tcp_hpts.h
+++ sys/netinet/tcp_hpts.h
@@ -115,7 +115,9 @@
static inline bool
tcp_in_hpts(struct tcpcb *tp)
{
- return (tp->t_in_hpts == IHPTS_ONQUEUE);
+ return ((tp->t_in_hpts == IHPTS_ONQUEUE) ||
+ ((tp->t_in_hpts == IHPTS_MOVING) &&
+ (tp->t_hpts_slot != -1)));
}
/*
@@ -208,6 +210,17 @@
return (tcp_tv_to_hptstick(sv));
}
+static __inline uint64_t
+tcp_get_u64_usecs(struct timeval *tv)
+{
+ struct timeval tvd;
+
+ if (tv == NULL)
+ tv = &tvd;
+ microuptime(tv);
+ return (tcp_tv_to_lusectick(tv));
+}
+
static __inline uint32_t
tcp_get_usecs(struct timeval *tv)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 9:39 PM (10 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14810349
Default Alt Text
D44157.id135224.diff (703 B)
Attached To
Mode
D44157: HTPS has actually three states not two so the macro needs to account for that.
Attached
Detach File
Event Timeline
Log In to Comment