Date: Sat, 06 Sep 2008 23:33:49 -0700 From: Julian Elischer <julian@elischer.org> To: Marko Zec <zec@FreeBSD.org>, FreeBSD virtualization mailing list <freebsd-virtualization@freebsd.org> Subject: Re: FOREACH_VNET... Message-ID: <48C375CD.3010308@elischer.org> In-Reply-To: <48C3743D.9090503@elischer.org> References: <48C3743D.9090503@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote: oops.. with correct indenting and some slight renaming.. > > static void > if_slowtimo(void *arg) > { > struct ifnet *ifp; > VNET_ITERATOR_DECL(vnet_iter, saved_vnet); > > IFNET_RLOCK(); > VNET_FOREACH(vnet_iter, saved_vnet) { > VNET_SWITCHTO(vnet_iter); > TAILQ_FOREACH(ifp, &V_ifnet, if_link) { > if (ifp->if_timer == 0 || --ifp->if_timer) > continue; > if (ifp->if_watchdog) > (*ifp->if_watchdog)(ifp); > } > } > VNET_FOREACH_RESTORE(saved_vnet); > IFNET_RUNLOCK(); > timeout(if_slowtimo, (void *)0, hz / IFNET_SLOWHZ); > } >\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48C375CD.3010308>