Catch up two more places to the V_ifnet change to a CK_STAILQ.
This commit is contained in:
parent
8936419a6c
commit
4560b78de2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334123
@ -868,7 +868,7 @@ vnet_ng_ether_init(const void *unused)
|
|||||||
|
|
||||||
/* Create nodes for any already-existing Ethernet interfaces. */
|
/* Create nodes for any already-existing Ethernet interfaces. */
|
||||||
IFNET_RLOCK();
|
IFNET_RLOCK();
|
||||||
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
||||||
if (ifp->if_type == IFT_ETHER
|
if (ifp->if_type == IFT_ETHER
|
||||||
|| ifp->if_type == IFT_L2VLAN)
|
|| ifp->if_type == IFT_L2VLAN)
|
||||||
ng_ether_attach(ifp);
|
ng_ether_attach(ifp);
|
||||||
|
@ -558,7 +558,7 @@ ng_gif_mod_event(module_t mod, int event, void *data)
|
|||||||
IFNET_RLOCK();
|
IFNET_RLOCK();
|
||||||
VNET_FOREACH(vnet_iter) {
|
VNET_FOREACH(vnet_iter) {
|
||||||
CURVNET_SET_QUIET(vnet_iter); /* XXX revisit quiet */
|
CURVNET_SET_QUIET(vnet_iter); /* XXX revisit quiet */
|
||||||
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) {
|
||||||
if (ifp->if_type == IFT_GIF)
|
if (ifp->if_type == IFT_GIF)
|
||||||
ng_gif_attach(ifp);
|
ng_gif_attach(ifp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user