Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_epair.c
Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
epair_qflush(struct ifnet *ifp) | epair_qflush(struct ifnet *ifp) | ||||
{ | { | ||||
struct epair_softc *sc; | struct epair_softc *sc; | ||||
sc = ifp->if_softc; | sc = ifp->if_softc; | ||||
KASSERT(sc != NULL, ("%s: ifp=%p, epair_softc gone? sc=%p\n", | |||||
__func__, ifp, sc)); | if (sc == NULL) | ||||
return; | |||||
/* | /* | ||||
* Remove this ifp from all backpointer lists. The interface will not | * Remove this ifp from all backpointer lists. The interface will not | ||||
* usable for flushing anyway nor should it have anything to flush | * usable for flushing anyway nor should it have anything to flush | ||||
* after if_qflush(). | * after if_qflush(). | ||||
*/ | */ | ||||
epair_remove_ifp_from_draining(ifp); | epair_remove_ifp_from_draining(ifp); | ||||
if (sc->if_qflush) | if (sc->if_qflush) | ||||
▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines |