Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107063870
D37124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
937 B
Referenced Files
None
Subscribers
None
D37124.diff
View Options
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -639,13 +639,6 @@
* to be cleaned up.
*/
inp->inp_route.ro_flags = RT_LLE_CACHE;
-#ifdef TCPHPTS
- /*
- * If using hpts lets drop a random number in so
- * not all new connections fall on the same CPU.
- */
- inp->inp_hpts_cpu = hpts_random_cpu(inp);
-#endif
refcount_init(&inp->inp_refcount, 1); /* Reference from socket. */
INP_WLOCK(inp);
INP_INFO_WLOCK(pcbinfo);
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -2315,6 +2315,13 @@
*/
inp->inp_ip_ttl = V_ip_defttl;
inp->inp_ppcb = tp;
+#ifdef TCPHPTS
+ /*
+ * If using hpts lets drop a random number in so
+ * not all new connections fall on the same CPU.
+ */
+ inp->inp_hpts_cpu = hpts_random_cpu(inp);
+#endif
#ifdef TCPPCAP
/*
* Init the TCP PCAP queues.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 1:13 PM (14 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15742928
Default Alt Text
D37124.diff (937 B)
Attached To
Mode
D37124: hpts: move inp initialization from the generic inpcb code to TCP
Attached
Detach File
Event Timeline
Log In to Comment