mempool: clarify default populate function
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 8 Oct 2019 09:34:06 +0000 (11:34 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 16 Oct 2019 08:41:21 +0000 (10:41 +0200)
commita2b5a8722f20265896cb1ac026c716239f6313bf
tree344a6dda2ceeaf54c9098ecc6f048107fd1926c3
parentb34801d1aa2e35f72203595c755aeb1b161724e8
mempool: clarify default populate function

No functional change.
Clarify the populate function to make future changes easier to
understand.

Rename the variables:
- to avoid negation in the name
- to have more understandable names

Remove useless variable (no_pageshift is equivalent to pg_sz == 0).

Remove duplicate affectation of "external" variable.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_mempool/rte_mempool.c