return the memory size required for mempool objects in anonymous mem */
| 623 | |
| 624 | /* return the memory size required for mempool objects in anonymous mem */ |
| 625 | static ssize_t |
| 626 | get_anon_size(const struct rte_mempool *mp) |
| 627 | { |
| 628 | ssize_t size; |
| 629 | size_t pg_sz, pg_shift; |
| 630 | size_t min_chunk_size; |
| 631 | size_t align; |
| 632 | |
| 633 | pg_sz = rte_mem_page_size(); |
| 634 | pg_shift = rte_bsf32(pg_sz); |
| 635 | size = rte_mempool_ops_calc_mem_size(mp, mp->size, pg_shift, |
| 636 | &min_chunk_size, &align); |
| 637 | |
| 638 | return size; |
| 639 | } |
| 640 | |
| 641 | /* unmap a memory zone mapped by rte_mempool_populate_anon() */ |
| 642 | static void |
no test coverage detected