Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153049819
D33538.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.diff
View Options
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
--- a/sys/kern/uipc_domain.c
+++ b/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
Sun, Apr 19, 8:31 PM (9 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31762678
Default Alt Text
D33538.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