Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160369886
D33538.id100225.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33538.id100225.diff
View Options
Index: sys/kern/uipc_domain.c
===================================================================
--- sys/kern/uipc_domain.c
+++ sys/kern/uipc_domain.c
@@ -116,12 +116,12 @@
};
static void
-protosw_init(struct protosw *pr)
+pr_usrreqs_init(struct protosw *pr)
{
struct pr_usrreqs *pu;
pu = pr->pr_usrreqs;
- KASSERT(pu != NULL, ("protosw_init: %ssw[%d] has no usrreqs!",
+ KASSERT(pu != NULL, ("%s: %ssw[%d] has no usrreqs!", __func__,
pr->pr_domain->dom_name,
(int)(pr - pr->pr_domain->dom_protosw)));
@@ -191,8 +191,6 @@
if (dp->dom_init)
(*dp->dom_init)();
for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) {
- protosw_init(pr);
-
/*
* Note that with VIMAGE enabled, domain_init() will be
* re-invoked for each new vnet that's created. The below lists
@@ -200,6 +198,7 @@
* state for non-default vnets.
*/
if (IS_DEFAULT_VNET(curvnet)) {
+ pr_usrreqs_init(pr);
rm_wlock(&pftimo_lock);
if (pr->pr_fasttimo != NULL)
LIST_INSERT_HEAD(&pffast_list, pr,
@@ -412,6 +411,7 @@
/* Copy the new struct protosw over the spacer. */
bcopy(npr, fpr, sizeof(*fpr));
+ pr_usrreqs_init(fpr);
rm_wlock(&pftimo_lock);
if (fpr->pr_fasttimo != NULL)
LIST_INSERT_HEAD(&pffast_list, fpr, pr_fasttimos);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 7:29 PM (13 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34291793
Default Alt Text
D33538.id100225.diff (1 KB)
Attached To
Mode
D33538: protocols: don't execute protosw_init() for every VNET
Attached
Detach File
Event Timeline
Log In to Comment