* * Free all receive rings. * **********************************************************************/
| 5881 | * |
| 5882 | **********************************************************************/ |
| 5883 | static void |
| 5884 | iflib_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 | |
| 5903 | static int |
| 5904 | iflib_qset_structures_setup(if_ctx_t ctx) |
no test coverage detected