pci: fix probing blacklisted device with RTE_PCI_DRV_MULTIPLE flag
authorJulien Courtat <julien.courtat@6wind.com>
Mon, 3 Jun 2013 00:00:00 +0000 (00:00 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Sep 2013 12:09:22 +0000 (14:09 +0200)
commit06bcaf50cab274395443fb8687263541486a5af9
tree8f3aad91c831976720a0646d2a8c4f878bc1f862
parenta22f5ce8fccad93876997aee05564486de2823dc
pci: fix probing blacklisted device with RTE_PCI_DRV_MULTIPLE flag

When blacklisting network adapters that share a PCI bus address with multiple
ports such as Mellanox ConnectX-3 (librte_pmd_mlx4), RTE applications
enter infinite loops while probing PCI devices.

This commit removes this probe on subsequent instances for blacklisted devices
that have RTE_PCI_DRV_MULTIPLE set.

Signed-off-by: Julien Courtat <julien.courtat@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
lib/librte_eal/common/eal_common_pci.c