net/thunderx: manage PCI device mapping for SQS VFs
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 9 Jun 2017 10:27:46 +0000 (15:57 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 15:57:22 +0000 (16:57 +0100)
commit6110b1c65ba01d2cce03b6c1640dfe519c6f5884
treede43efee7c944bc33ffd7f4efc0160cf12639c0a
parentcc0ed2473edc073297af5cb21ff1aa4bbab60c71
net/thunderx: manage PCI device mapping for SQS VFs

Since the commit e84ad157b7bc ("pci: unmap resources if probe fails"),
EAL unmaps the PCI device if ethdev probe returns positive or
negative value.

nicvf thunderx PMD needs 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.

Enable the same behavior by using RTE_PCI_DRV_KEEP_MAPPED_RES
PCI driver flag.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/thunderx/nicvf_ethdev.c