Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: get ride of pg_get_mempool #305

Open
jerome-jutteau opened this issue Dec 6, 2016 · 0 comments
Open

core: get ride of pg_get_mempool #305

jerome-jutteau opened this issue Dec 6, 2016 · 0 comments
Labels

Comments

@jerome-jutteau
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant