malloc: use pointer diff macro in IOVA mapping
authorSantosh Shukla <santosh.shukla@caviumnetworks.com>
Fri, 20 Oct 2017 12:31:36 +0000 (18:01 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 6 Nov 2017 21:24:49 +0000 (22:24 +0100)
commitb51c140a1e97a12c31aeb061276577440a5e9da5
tree01d4983639a5d22e9e2d35ae821fe24629173074
parent87cf4c6cca30201ae4d94ddf527e78bebec9680b
malloc: use pointer diff macro in IOVA mapping

Use RTE_PTR_DIFF macro in rte_mem_virt2iova api.

Suggested-by: Anatoly Burakov <anatoly.burakov@intel.com>
Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
lib/librte_eal/common/rte_malloc.c