test/mempool: fix no-huge mode
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Tue, 2 Nov 2021 10:08:17 +0000 (12:08 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Nov 2021 17:32:19 +0000 (18:32 +0100)
commit5b08ac4e4a8dbc95f52b871b62a97fda57fa477e
treebd7dceaecf8f77c5a86a01d914374a900d027806
parent89e94773cb4a59d6e1af204081877e5b5ffdcb02
test/mempool: fix no-huge mode

Amount of locked memory for regular users is limited,
it is usually 64 KB by default.
Hitting this limit in rte_mempool_populate_anon()
resulted in not populating the mempool, and a test case failure:

    EAL: Test assert test_mempool_events line 585 failed: Failed to populate mempool empty1: Success
    test failed at test_mempool():1019
    Test Failed

Decrease the amount of mapped anonymous memory to fit the limit.
While there, make all function-local constants lowercase.

Fixes: 11541c5c81dd ("mempool: add non-IO flag")

Reported-by: Olivier Matz <olivier.matz@6wind.com>
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
app/test/test_mempool.c