| 293 | } |
| 294 | |
| 295 | void dma_pool_destroy(struct dma_pool *pool) |
| 296 | { |
| 297 | if (!pool) |
| 298 | return; |
| 299 | |
| 300 | if (rte_atomic32_read(&pool->inuse) != 0) { |
| 301 | PMD_DRV_LOG(ERR, "Leak memory, dma_pool: %s, inuse_count: %d", |
| 302 | pool->name, rte_atomic32_read(&pool->inuse)); |
| 303 | } |
| 304 | |
| 305 | rte_free(pool); |
| 306 | } |
| 307 | |
| 308 | void *dma_pool_alloc(struct pci_pool *pool, dma_addr_t *dma_addr) |
| 309 | { |
no test coverage detected