| 442 | */ |
| 443 | |
| 444 | static void |
| 445 | vnet_if_init(const void *unused __unused) |
| 446 | { |
| 447 | void *old; |
| 448 | |
| 449 | CK_STAILQ_INIT(&V_ifnet); |
| 450 | CK_STAILQ_INIT(&V_ifg_head); |
| 451 | IFNET_WLOCK(); |
| 452 | old = if_grow(); /* create initial table */ |
| 453 | IFNET_WUNLOCK(); |
| 454 | epoch_wait_preempt(net_epoch_preempt); |
| 455 | free(old, M_IFNET); |
| 456 | vnet_if_clone_init(); |
| 457 | } |
| 458 | VNET_SYSINIT(vnet_if_init, SI_SUB_INIT_IF, SI_ORDER_SECOND, vnet_if_init, |
| 459 | NULL); |
| 460 |
nothing calls this directly
no test coverage detected