test/mem: remove dependency on EAL internals
authorDavid Marchand <david.marchand@redhat.com>
Fri, 25 Oct 2019 13:56:07 +0000 (15:56 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 27 Oct 2019 09:41:08 +0000 (10:41 +0100)
commitab35397e7aea3db87a25249f8506105af4fbcafa
treebf42f104af90f349aa3c787b78f012902802c423
parentb5fedaedfcf272d1a86802132a1691ac5485f31d
test/mem: remove dependency on EAL internals

Rather than dereference the mem_config internal structure, we can rely
on the rte_memzone_walk API and count memzones.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
app/test/test_memzone.c