| 571 | } |
| 572 | |
| 573 | void * |
| 574 | mlx5_ipool_zmalloc(struct mlx5_indexed_pool *pool, uint32_t *idx) |
| 575 | { |
| 576 | void *entry = mlx5_ipool_malloc(pool, idx); |
| 577 | |
| 578 | if (entry && pool->cfg.size) |
| 579 | memset(entry, 0, pool->cfg.size); |
| 580 | return entry; |
| 581 | } |
| 582 | |
| 583 | void |
| 584 | mlx5_ipool_free(struct mlx5_indexed_pool *pool, uint32_t idx) |
no test coverage detected