Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162812970
D32970.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
543 B
Referenced Files
None
Subscribers
None
D32970.diff
View Options
diff --git a/sys/netinet/cc/cc.c b/sys/netinet/cc/cc.c
--- a/sys/netinet/cc/cc.c
+++ b/sys/netinet/cc/cc.c
@@ -316,6 +316,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
Sat, Jul 18, 3:55 AM (2 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35187961
Default Alt Text
D32970.diff (543 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