test/mbuf: fix virtual address conversion
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 5 Jul 2021 07:27:34 +0000 (09:27 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 6 Jul 2021 14:41:13 +0000 (16:41 +0200)
commiteb3fea3cdebbd860b6094e21aae589746e13c22a
treebbd57aad60c0219dd3de0ccfe1bf92fecd0c661a
parent09e640e35ee7990a8188c3a90a55baa1eb68792b
test/mbuf: fix virtual address conversion

Seen with address sanitizer.

rte_mempool_virt2iova() can only be used on mempool elements. In this case,
it is incorrect, and rte_mem_virt2iova() has to be used.

Bugzilla ID: 737
Fixes: 7b295dceea07 ("test/mbuf: add unit test cases")
Cc: stable@dpdk.org
Reported-by: Zhihong Peng <zhihongx.peng@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_mbuf.c