Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109379728
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
Wed, Feb 5, 7:33 AM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16469959
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