Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/oce/oce_if.c
Show First 20 Lines • Show All 701 Lines • ▼ Show 20 Lines | oce_fast_isr(void *arg) | ||||
POCE_INTR_INFO ii = (POCE_INTR_INFO) arg; | POCE_INTR_INFO ii = (POCE_INTR_INFO) arg; | ||||
POCE_SOFTC sc = ii->sc; | POCE_SOFTC sc = ii->sc; | ||||
if (ii->eq == NULL) | if (ii->eq == NULL) | ||||
return FILTER_STRAY; | return FILTER_STRAY; | ||||
oce_arm_eq(sc, ii->eq->eq_id, 0, FALSE, TRUE); | oce_arm_eq(sc, ii->eq->eq_id, 0, FALSE, TRUE); | ||||
taskqueue_enqueue_fast(ii->tq, &ii->task); | taskqueue_enqueue(ii->tq, &ii->task); | ||||
ii->eq->intr++; | ii->eq->intr++; | ||||
return FILTER_HANDLED; | return FILTER_HANDLED; | ||||
} | } | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | oce_tx_restart(POCE_SOFTC sc, struct oce_wq *wq) | ||||
if ((sc->ifp->if_drv_flags & IFF_DRV_RUNNING) != IFF_DRV_RUNNING) | if ((sc->ifp->if_drv_flags & IFF_DRV_RUNNING) != IFF_DRV_RUNNING) | ||||
return; | return; | ||||
#if __FreeBSD_version >= 800000 | #if __FreeBSD_version >= 800000 | ||||
if (!drbr_empty(sc->ifp, wq->br)) | if (!drbr_empty(sc->ifp, wq->br)) | ||||
#else | #else | ||||
if (!IFQ_DRV_IS_EMPTY(&sc->ifp->if_snd)) | if (!IFQ_DRV_IS_EMPTY(&sc->ifp->if_snd)) | ||||
#endif | #endif | ||||
taskqueue_enqueue_fast(taskqueue_swi, &wq->txtask); | taskqueue_enqueue(taskqueue_swi, &wq->txtask); | ||||
} | } | ||||
#if defined(INET6) || defined(INET) | #if defined(INET6) || defined(INET) | ||||
static struct mbuf * | static struct mbuf * | ||||
oce_tso_setup(POCE_SOFTC sc, struct mbuf **mpp) | oce_tso_setup(POCE_SOFTC sc, struct mbuf **mpp) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,283 Lines • Show Last 20 Lines |