Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Show First 20 Lines • Show All 2,270 Lines • ▼ Show 20 Lines | #else | ||||
while ((txd = buf_ring_dequeue_sc(txr->hn_txdesc_br)) != NULL) | while ((txd = buf_ring_dequeue_sc(txr->hn_txdesc_br)) != NULL) | ||||
hn_txdesc_dmamap_destroy(txd); | hn_txdesc_dmamap_destroy(txd); | ||||
#endif | #endif | ||||
if (txr->hn_tx_data_dtag != NULL) | if (txr->hn_tx_data_dtag != NULL) | ||||
bus_dma_tag_destroy(txr->hn_tx_data_dtag); | bus_dma_tag_destroy(txr->hn_tx_data_dtag); | ||||
if (txr->hn_tx_rndis_dtag != NULL) | if (txr->hn_tx_rndis_dtag != NULL) | ||||
bus_dma_tag_destroy(txr->hn_tx_rndis_dtag); | bus_dma_tag_destroy(txr->hn_tx_rndis_dtag); | ||||
#ifdef HN_USE_TXDESC_BUFRING | |||||
buf_ring_free(txr->hn_txdesc_br, M_NETVSC); | |||||
#endif | |||||
free(txr->hn_txdesc, M_NETVSC); | free(txr->hn_txdesc, M_NETVSC); | ||||
txr->hn_txdesc = NULL; | txr->hn_txdesc = NULL; | ||||
#ifndef HN_USE_TXDESC_BUFRING | #ifndef HN_USE_TXDESC_BUFRING | ||||
mtx_destroy(&txr->hn_txlist_spin); | mtx_destroy(&txr->hn_txlist_spin); | ||||
#endif | #endif | ||||
mtx_destroy(&txr->hn_tx_lock); | mtx_destroy(&txr->hn_tx_lock); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |