eal/pci: introduce a PCI driver flag
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 9 Jun 2017 10:27:45 +0000 (15:57 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 15:57:11 +0000 (16:57 +0100)
commitcc0ed2473edc073297af5cb21ff1aa4bbab60c71
tree3b85f4e6368233246057adb0618f2075a953bb2c
parent468d8dc6e8e38f8b320a7b93b6c3e5cc5f9a4d05
eal/pci: introduce a PCI driver flag

Some ethdev devices like nicvf thunderx PMD need special treatment for
Secondary queue set(SQS) PCIe VF devices, where, it expects to not unmap
or free the memory without registering the ethdev subsystem.

Introducing a new RTE_PCI_DRV_KEEP_MAPPED_RES
PCI driver flag to request PCI subsystem to not unmap the mapped PCI
resources(PCI BAR address) if unsupported device detected.

Suggested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/common/include/rte_pci.h