[dpdk-dev] [PATCH] fm10k: support XEN domain0
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri May 15 12:21:04 CEST 2015
Hi,
2015-05-15 16:56, Shaopeng He:
> +#ifdef RTE_LIBRTE_XEN_DOM0
> + q->hw_ring_phys_addr = rte_mem_phy2mch(mz->memseg_id, mz->phys_addr);
> +#else
> q->hw_ring_phys_addr = mz->phys_addr;
> +#endif
I know this is already done this way in other drivers, but don't you think
it's time to create a function to get physical address from a memzone?
So we could remove these "ifdef Xen" from every drivers.
Thanks
More information about the dev
mailing list