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

Function mlx5_mr_free

dpdk/drivers/common/mlx5/mlx5_common_mr.c:490–499  ·  view source on GitHub ↗

* Free MR resources. MR lock must not be held to avoid a deadlock. rte_free() * can raise memory free event and the callback function will spin on the lock. * * @param mr * Pointer to MR to free. */

Source from the content-addressed store, hash-verified

488 * Pointer to MR to free.
489 */
490void
491mlx5_mr_free(struct mlx5_mr *mr, mlx5_dereg_mr_t dereg_mr_cb)
492{
493 if (mr == NULL)
494 return;
495 DRV_LOG(DEBUG, "freeing MR(%p):", (void *)mr);
496 dereg_mr_cb(&mr->pmd_mr);
497 rte_bitmap_free(mr->ms_bmp);
498 mlx5_free(mr);
499}
500
501void
502mlx5_mr_rebuild_cache(struct mlx5_mr_share_cache *share_cache)

Callers 4

mlx5_common_dev_dma_mapFunction · 0.85
mlx5_mr_garbage_collectFunction · 0.85
mlx5_mr_create_primaryFunction · 0.85

Calls 2

rte_bitmap_freeFunction · 0.85
mlx5_freeFunction · 0.85

Tested by

no test coverage detected