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

Function iflib_rx_structures_free

freebsd/net/iflib.c:5883–5901  ·  view source on GitHub ↗

* * Free all receive rings. * **********************************************************************/

Source from the content-addressed store, hash-verified

5881 *
5882 **********************************************************************/
5883static void
5884iflib_rx_structures_free(if_ctx_t ctx)
5885{
5886 iflib_rxq_t rxq = ctx->ifc_rxqs;
5887 if_shared_ctx_t sctx = ctx->ifc_sctx;
5888 int i, j;
5889
5890 for (i = 0; i < ctx->ifc_softc_ctx.isc_nrxqsets; i++, rxq++) {
5891 for (j = 0; j < sctx->isc_nrxqs; j++)
5892 iflib_dma_free(&rxq->ifr_ifdi[j]);
5893 iflib_rx_sds_free(rxq);
5894#if defined(INET6) || defined(INET)
5895 if (if_getcapabilities(ctx->ifc_ifp) & IFCAP_LRO)
5896 tcp_lro_free(&rxq->ifr_lc);
5897#endif
5898 }
5899 free(ctx->ifc_rxqs, M_IFLIB);
5900 ctx->ifc_rxqs = NULL;
5901}
5902
5903static int
5904iflib_qset_structures_setup(if_ctx_t ctx)

Callers 5

iflib_rxsd_allocFunction · 0.85
iflib_device_registerFunction · 0.85
iflib_pseudo_registerFunction · 0.85
iflib_pseudo_deregisterFunction · 0.85
iflib_device_deregisterFunction · 0.85

Calls 5

iflib_dma_freeFunction · 0.85
iflib_rx_sds_freeFunction · 0.85
if_getcapabilitiesFunction · 0.85
tcp_lro_freeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected