Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153292651
D33261.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
589 B
Referenced Files
None
Subscribers
None
D33261.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -441,15 +441,11 @@
static void
vnet_if_init(const void *unused __unused)
{
- void *old;
CK_STAILQ_INIT(&V_ifnet);
CK_STAILQ_INIT(&V_ifg_head);
- IFNET_WLOCK();
- old = if_grow(); /* create initial table */
- IFNET_WUNLOCK();
- epoch_wait_preempt(net_epoch_preempt);
- free(old, M_IFNET);
+ V_ifindex_table = malloc(V_if_indexlim * sizeof(*V_ifindex_table),
+ M_IFNET, M_WAITOK | M_ZERO);
vnet_if_clone_init();
}
VNET_SYSINIT(vnet_if_init, SI_SUB_INIT_IF, SI_ORDER_SECOND, vnet_if_init,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 7:20 AM (4 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31896526
Default Alt Text
D33261.diff (589 B)
Attached To
Mode
D33261: ifnet: initial if_grow() shall always succeed
Attached
Detach File
Event Timeline
Log In to Comment