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

Function mlx5_ipool_free_cache

dpdk/drivers/net/mlx5/mlx5_utils.c:498–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498static void
499mlx5_ipool_free_cache(struct mlx5_indexed_pool *pool, uint32_t idx)
500{
501 int cidx;
502
503 cidx = rte_lcore_index(rte_lcore_id());
504 if (unlikely(cidx == -1)) {
505 cidx = RTE_MAX_LCORE;
506 rte_spinlock_lock(&pool->lcore_lock);
507 }
508 _mlx5_ipool_free_cache(pool, cidx, idx);
509 if (unlikely(cidx == RTE_MAX_LCORE))
510 rte_spinlock_unlock(&pool->lcore_lock);
511}
512
513void *
514mlx5_ipool_malloc(struct mlx5_indexed_pool *pool, uint32_t *idx)

Callers 1

mlx5_ipool_freeFunction · 0.85

Calls 5

rte_lcore_indexFunction · 0.85
rte_lcore_idFunction · 0.85
_mlx5_ipool_free_cacheFunction · 0.85
rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected