fm10k: support Xen domain0
authorShaopeng He <shaopeng.he@intel.com>
Fri, 15 May 2015 08:56:02 +0000 (16:56 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 10:39:20 +0000 (12:39 +0200)
commit6ffefc4c8fe0f8dc3ee88aa43e062c4167a27b47
tree57fc67c0a4e0bdfb21941aa048e36ec2deae05e5
parent71d6dac903d65d018c7de03c947042db5d00a70f
fm10k: support Xen domain0

fm10k was failing to run in XEN domain0, as the physical
memory for 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
fm10k PMD in XEN domain0.

Signed-off-by: Shaopeng He <shaopeng.he@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
drivers/net/fm10k/fm10k_ethdev.c