[dpdk-dev] [PATCH v5 7/9] eal: pci: export pci_[un]map_device

David Marchand david.marchand at 6wind.com
Tue Jan 19 09:17:41 CET 2016


On Tue, Jan 19, 2016 at 9:12 AM, Yuanhan Liu
<yuanhan.liu at linux.intel.com> wrote:
> Normally we could set RTE_PCI_DRV_NEED_MAPPING flag so that eal will
> invoke pci_map_device internally for us. From that point view, there
> is no need to export pci_map_device.
>
> However, for virtio pmd driver, which is designed to work without
> binding UIO (or something similar first), pci_map_device() will fail,
> which ends up with virtio pmd driver being skipped. Therefore, we can
> not set RTE_PCI_DRV_NEED_MAPPING blindly at virtio pmd driver.
>
> Therefore, this patch exports pci_map_device, and let virtio pmd
> call it when necessary.
>
> Cc: David Marchand <david.marchand at 6wind.com>
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> Tested-By: Santosh Shukla <sshukla at mvista.com>
> Tested-by: Qian Xu <qian.q.xu at intel.com>
> Reviewed-by: Tetsuya Mukawa <mukawa at igel.co.jp>
> Tested-by: Tetsuya Mukawa <mukawa at igel.co.jp>

lgtm
Acked-by: David Marchand <david.marchand at 6wind.com>

-- 
David Marchand


More information about the dev mailing list