Date: Thu, 24 May 2018 00:06:55 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334123 - head/sys/netgraph Message-ID: <201805240006.w4O06tUg068304@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu May 24 00:06:55 2018 New Revision: 334123 URL: https://svnweb.freebsd.org/changeset/base/334123 Log: Catch up two more places to the V_ifnet change to a CK_STAILQ. Modified: head/sys/netgraph/ng_ether.c head/sys/netgraph/ng_gif.c Modified: head/sys/netgraph/ng_ether.c ============================================================================== --- head/sys/netgraph/ng_ether.c Wed May 23 21:39:29 2018 (r334122) +++ head/sys/netgraph/ng_ether.c Thu May 24 00:06:55 2018 (r334123) @@ -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); Modified: head/sys/netgraph/ng_gif.c ============================================================================== --- head/sys/netgraph/ng_gif.c Wed May 23 21:39:29 2018 (r334122) +++ head/sys/netgraph/ng_gif.c Thu May 24 00:06:55 2018 (r334123) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805240006.w4O06tUg068304>