pci: allow drivers to be bound several times to the same PCI device
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Wed, 19 Dec 2012 16:55:37 +0000 (17:55 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 25 Jul 2013 14:07:51 +0000 (16:07 +0200)
commit66daf76700061966fad71130ebbd3977a8746d8a
tree404fca8b027deae1cd0969649501b968cdaa3e4d
parentc4641b4b1e293690c284c41e824243b14f3ee745
pci: allow drivers to be bound several times to the same PCI device

Drivers with the flag RTE_PCI_DRV_MULTIPLE enabled will be bound several
times to the same device until they return an error.

These drivers must internally keep track of each device state in order for
this to work reliably.

This flag currently required for Ethernet adapters with several physical
ports but a single address on the PCI bus.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
Acked-by: Damien Millescamps <damien.millescamps@6wind.com>
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/common/include/rte_pci.h