Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146591934
D32970.id98434.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
578 B
Referenced Files
None
Subscribers
None
D32970.id98434.diff
View Options
Index: sys/netinet/cc/cc.c
===================================================================
--- sys/netinet/cc/cc.c
+++ sys/netinet/cc/cc.c
@@ -309,6 +309,23 @@
return (err);
}
+static void
+vnet_cc_sysinit(void *arg)
+{
+ struct cc_algo *cc;
+
+ if (IS_DEFAULT_VNET(curvnet))
+ return;
+
+ CURVNET_SET(vnet0);
+ cc = V_default_cc_ptr;
+ CURVNET_RESTORE();
+
+ V_default_cc_ptr = cc;
+}
+VNET_SYSINIT(vnet_cc_sysinit, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY,
+ vnet_cc_sysinit, NULL);
+
/*
* Perform any necessary tasks before we exit congestion recovery.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 4, 10:27 PM (15 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29258469
Default Alt Text
D32970.id98434.diff (578 B)
Attached To
Mode
D32970: tcp: Ensure that vnets have an initialized V_default_cc_ptr
Attached
Detach File
Event Timeline
Log In to Comment