From 4560b78de29dd78781ac8d4247b265627a9c2010 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 24 May 2018 00:06:55 +0000 Subject: [PATCH] Catch up two more places to the V_ifnet change to a CK_STAILQ. --- sys/netgraph/ng_ether.c | 2 +- sys/netgraph/ng_gif.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 42c4f0ea01e2..c023b0d3d5e6 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -868,7 +868,7 @@ vnet_ng_ether_init(const void *unused) /* Create nodes for any already-existing Ethernet interfaces. */ IFNET_RLOCK(); - TAILQ_FOREACH(ifp, &V_ifnet, if_link) { + CK_STAILQ_FOREACH(ifp, &V_ifnet, if_link) { if (ifp->if_type == IFT_ETHER || ifp->if_type == IFT_L2VLAN) ng_ether_attach(ifp); diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 2b96e515e5a2..69401a3344fb 100644 --- a/sys/netgraph/ng_gif.c +++ b/sys/netgraph/ng_gif.c @@ -558,7 +558,7 @@ ng_gif_mod_event(module_t mod, int event, void *data) IFNET_RLOCK(); VNET_FOREACH(vnet_iter) { 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) ng_gif_attach(ifp); }