test/mem: fix page size for external memory
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 15 Jan 2021 07:32:43 +0000 (13:02 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 1 Mar 2021 10:58:28 +0000 (11:58 +0100)
commit52db57db0536bf20cbb50464ca4c18b0c9fde4e4
tree8f849447747ebc03e413cc5fc3c6120be2b5d2d0
parentc13ca4e81cac591904c893a65ffbbf446af0268a
test/mem: fix page size for external memory

Currently external memory test uses 4K page size.
VFIO DMA mapping works only with system page granularity.

Earlier it was working because all the contiguous mappings
were coalesced and mapped in one-go which ended up becoming
a lot bigger page. Now that VFIO DMA mappings both in IOVA as VA
and IOVA as PA mode, are being done at memseg list granularity,
we need to use system page size.

Fixes: b270daa43b3d ("test: support external memory")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
app/test/test_external_mem.c