mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
ng_ether: Create netgraph nodes for bridge interfaces.
Create netgraph nodes for bridge interfaces when the ng_ether module is loaded. If a bridge interface is created after loading the ng_ether module, a netgraph node is created via ether_ifattach(). MFC after: 1 week
This commit is contained in:
parent
13c63ae08d
commit
d653b188e8
|
@ -414,7 +414,9 @@ ng_ether_ifnet_arrival_event(void *arg __unused, struct ifnet *ifp)
|
|||
node_p node;
|
||||
|
||||
/* Only ethernet interfaces are of interest. */
|
||||
if (ifp->if_type != IFT_ETHER && ifp->if_type != IFT_L2VLAN)
|
||||
if (ifp->if_type != IFT_ETHER &&
|
||||
ifp->if_type != IFT_L2VLAN &&
|
||||
ifp->if_type != IFT_BRIDGE)
|
||||
return;
|
||||
|
||||
/*
|
||||
|
@ -868,8 +870,9 @@ vnet_ng_ether_init(const void *unused)
|
|||
/* Create nodes for any already-existing Ethernet interfaces. */
|
||||
IFNET_RLOCK();
|
||||
CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
||||
if (ifp->if_type == IFT_ETHER
|
||||
|| ifp->if_type == IFT_L2VLAN)
|
||||
if (ifp->if_type == IFT_ETHER ||
|
||||
ifp->if_type == IFT_L2VLAN ||
|
||||
ifp->if_type == IFT_BRIDGE)
|
||||
ng_ether_attach(ifp);
|
||||
}
|
||||
IFNET_RUNLOCK();
|
||||
|
|
Loading…
Reference in a new issue