| 857 | } |
| 858 | |
| 859 | static void |
| 860 | vnet_ng_ether_init(const void *unused) |
| 861 | { |
| 862 | struct ifnet *ifp; |
| 863 | |
| 864 | /* If module load was rejected, don't attach to vnets. */ |
| 865 | if (ng_ether_attach_p != ng_ether_attach) |
| 866 | return; |
| 867 | |
| 868 | /* Create nodes for any already-existing Ethernet interfaces. */ |
| 869 | IFNET_RLOCK(); |
| 870 | CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) { |
| 871 | if (ifp->if_type == IFT_ETHER |
| 872 | || ifp->if_type == IFT_L2VLAN) |
| 873 | ng_ether_attach(ifp); |
| 874 | } |
| 875 | IFNET_RUNLOCK(); |
| 876 | } |
| 877 | VNET_SYSINIT(vnet_ng_ether_init, SI_SUB_PSEUDO, SI_ORDER_ANY, |
| 878 | vnet_ng_ether_init, NULL); |
nothing calls this directly
no test coverage detected