FreeBSD/sys/dev/ixl/if_ixlv.c
/*********************************************************************
 *
 *  This routine disables all traffic on the adapter by issuing a
 *  global reset on the MAC and deallocates TX/RX buffers.
 *
 **********************************************************************/
This routine disables all traffic on the adapter by issuing a
global reset on the MAC and deallocates TX/RX buffers.
This routine disables all traffic on the adapter by issuing a global reset on the MAC and deallocates TX / RX buffers .
static void
ixlv_stop(struct ixlv_sc *sc)
{
	struct ifnet *ifp;
	int start;
	ifp = sc->vsi.ifp;
	INIT_DBG_IF(ifp, "begin");
	IXLV_CORE_LOCK_ASSERT(sc);
	ixl_vc_flush(&sc->vc_mgr);
	ixlv_disable_queues(sc);
	start = ticks;
	while ((ifp->if_drv_flags & IFF_DRV_RUNNING) &&
	    ((ticks - start) < hz/10))
		ixlv_do_adminq_locked(sc);
	callout_stop(&sc->timer);
	INIT_DBG_IF(ifp, "end");
}
static void ixlv_stop ( struct ixlv_sc * sc ) { struct ifnet * ifp ; int start ; ifp = sc -> vsi . ifp ; INIT_DBG_IF ( ifp , " " ) ; IXLV_CORE_LOCK_ASSERT ( sc ) ; ixl_vc_flush ( & sc -> vc_mgr ) ; ixlv_disable_queues ( sc ) ; start = ticks ; while ( ( ifp -> if_drv_flags & IFF_DRV_RUNNING ) && ( ( ticks - start ) < hz / 10 ) ) ixlv_do_adminq_locked ( sc ) ; callout_stop ( & sc -> timer ) ; INIT_DBG_IF ( ifp , " " ) ; }
This routine disables all traffic on the adapter by issuing a
  global reset on the MAC and deallocates TX/RX buffers.
This routine disables all traffic on the adapter by issuing a global reset on the MAC and deallocates TX / RX buffers .
/* Stop the local timer */