Re: [PATCH v3 6/8] eal: pci: export pci_[un]map_device
From: Yuanhan Liu <hidden>
Date: 2016-01-14 07:44:06
From: Yuanhan Liu <hidden>
Date: 2016-01-14 07:44:06
On Thu, Jan 14, 2016 at 03:42:50PM +0800, Yuanhan Liu 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 <redacted> Signed-off-by: Yuanhan Liu <redacted>
Oops, forgot to carry the tested-by from Santosh. Tested-By: Santosh Shukla <redacted> --yliu