packetgraph icon indicating copy to clipboard operation
packetgraph copied to clipboard

core: get ride of pg_get_mempool

Open jerome-jutteau opened this issue 8 years ago • 0 comments

we can init mempool global variable at pg_init time and use it instead of always check if mempool is created during pg_get_mempool.

  • call pg_alloc_mempool() at pg_init()
  • rename extern struct rte_mempool *mp to pg_mempool
  • adapt every calls of pg_get_mempool and replace them with pg_mempool

jerome-jutteau avatar Dec 06 '16 13:12 jerome-jutteau