i40e: support xen domain0
authorHelin Zhang <helin.zhang@intel.com>
Thu, 14 Aug 2014 06:12:53 +0000 (14:12 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 25 Aug 2014 13:44:32 +0000 (15:44 +0200)
commit4f41de4fd549172acc5460b5c3df2b7a8f7f08bd
treeb499fc3b12b9926f936923ade6dda0cb55a76920
parent35170c52d0ae33dc30e69bcf681e5a17168bf11e
i40e: support xen domain0

i40e was failing to run in XEN domain0, as the physical
memory for adminq DMA should be allocated and translated
in a different way for XEN domain0. So
rte_memzone_reserve_bounded() should be used for DMA
memory allocation, and rte_mem_phy2mch() should be used
for DMA memory address translation to support running
i40e PMD in XEN domain0.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c