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

Function bnxt_free_mem

dpdk/drivers/net/bnxt/bnxt_ethdev.c:267–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267static void bnxt_free_mem(struct bnxt *bp, bool reconfig)
268{
269 bnxt_free_filter_mem(bp);
270 bnxt_free_vnic_attributes(bp);
271 bnxt_free_vnic_mem(bp);
272
273 /* tx/rx rings are configured as part of *_queue_setup callbacks.
274 * If the number of rings change across fw update,
275 * we don't have much choice except to warn the user.
276 */
277 if (!reconfig) {
278 bnxt_free_stats(bp);
279 bnxt_free_tx_rings(bp);
280 bnxt_free_rx_rings(bp);
281 }
282 bnxt_free_async_cp_ring(bp);
283 bnxt_free_rxtx_nq_ring(bp);
284
285 rte_free(bp->grp_info);
286 bp->grp_info = NULL;
287}
288
289static int bnxt_alloc_parent_info(struct bnxt *bp)
290{

Callers 2

bnxt_alloc_memFunction · 0.85
bnxt_uninit_resourcesFunction · 0.85

Calls 9

bnxt_free_filter_memFunction · 0.85
bnxt_free_vnic_memFunction · 0.85
bnxt_free_statsFunction · 0.85
bnxt_free_tx_ringsFunction · 0.85
bnxt_free_rx_ringsFunction · 0.85
bnxt_free_async_cp_ringFunction · 0.85
bnxt_free_rxtx_nq_ringFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected