MCPcopy Create free account
hub / github.com/F-Stack/f-stack / iflib_tx_structures_free

Function iflib_tx_structures_free

freebsd/net/iflib.c:5815–5830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5813}
5814
5815static void
5816iflib_tx_structures_free(if_ctx_t ctx)
5817{
5818 iflib_txq_t txq = ctx->ifc_txqs;
5819 if_shared_ctx_t sctx = ctx->ifc_sctx;
5820 int i, j;
5821
5822 for (i = 0; i < NTXQSETS(ctx); i++, txq++) {
5823 for (j = 0; j < sctx->isc_ntxqs; j++)
5824 iflib_dma_free(&txq->ift_ifdi[j]);
5825 iflib_txq_destroy(txq);
5826 }
5827 free(ctx->ifc_txqs, M_IFLIB);
5828 ctx->ifc_txqs = NULL;
5829 IFDI_QUEUES_FREE(ctx);
5830}
5831
5832/*********************************************************************
5833 *

Callers 6

iflib_txsd_allocFunction · 0.85
iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85
iflib_pseudo_deregisterFunction · 0.85
iflib_device_deregisterFunction · 0.85
iflib_queues_allocFunction · 0.85

Calls 3

iflib_dma_freeFunction · 0.85
iflib_txq_destroyFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected