Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_txrx.c
Show First 20 Lines • Show All 1,498 Lines • ▼ Show 20 Lines | skip_head: | ||||
wr32(vsi->hw, rxr->tail, que->num_rx_desc - 1); | wr32(vsi->hw, rxr->tail, que->num_rx_desc - 1); | ||||
ixl_flush(vsi->hw); | ixl_flush(vsi->hw); | ||||
#if defined(INET6) || defined(INET) | #if defined(INET6) || defined(INET) | ||||
/* | /* | ||||
** Now set up the LRO interface: | ** Now set up the LRO interface: | ||||
*/ | */ | ||||
if (lro->ifp != NULL) { | |||||
tcp_lro_free(lro); | |||||
lro->ifp = NULL; | |||||
} | |||||
if (ifp->if_capenable & IFCAP_LRO) { | if (ifp->if_capenable & IFCAP_LRO) { | ||||
int err = tcp_lro_init(lro); | int err = tcp_lro_init(lro); | ||||
if (err) { | if (err) { | ||||
if_printf(ifp, "queue %d: LRO Initialization failed!\n", que->me); | if_printf(ifp, "queue %d: LRO Initialization failed!\n", que->me); | ||||
goto fail; | goto fail; | ||||
} | } | ||||
INIT_DBG_IF(ifp, "queue %d: RX Soft LRO Initialized", que->me); | INIT_DBG_IF(ifp, "queue %d: RX Soft LRO Initialized", que->me); | ||||
rxr->lro_enabled = TRUE; | rxr->lro_enabled = TRUE; | ||||
Show All 38 Lines | ixl_free_que_rx(struct ixl_queue *que) | ||||
if (rxr->htag != NULL) { | if (rxr->htag != NULL) { | ||||
bus_dma_tag_destroy(rxr->htag); | bus_dma_tag_destroy(rxr->htag); | ||||
rxr->htag = NULL; | rxr->htag = NULL; | ||||
} | } | ||||
if (rxr->ptag != NULL) { | if (rxr->ptag != NULL) { | ||||
bus_dma_tag_destroy(rxr->ptag); | bus_dma_tag_destroy(rxr->ptag); | ||||
rxr->ptag = NULL; | rxr->ptag = NULL; | ||||
} | |||||
if (rxr->lro.ifp != NULL) { | |||||
tcp_lro_free(&rxr->lro); | |||||
rxr->lro.ifp = NULL; | |||||
} | } | ||||
} | } | ||||
static inline void | static inline void | ||||
ixl_rx_input(struct rx_ring *rxr, struct ifnet *ifp, struct mbuf *m, u8 ptype) | ixl_rx_input(struct rx_ring *rxr, struct ifnet *ifp, struct mbuf *m, u8 ptype) | ||||
{ | { | ||||
#if defined(INET6) || defined(INET) | #if defined(INET6) || defined(INET) | ||||
▲ Show 20 Lines • Show All 774 Lines • Show Last 20 Lines |