numam-dpdk/lib/librte_eal
Gaetan Rivet 23eaa9059e bus/pci: use given name as generic name
When an application requests the use of a PCI device, it can currently
interchangeably use either the longform DomBDF format (0000:00:00.0) or
the shorter BDF format (00:00.0).

When a device is inserted via the hotplug API, it must first be scanned
and then will be identified by its name using `find_device`. The name of
the device must match the name given by the user to be found and then
probed.

A new function sets the expected name for a scanned PCI device. It was
previously generated from parsing the PCI address. This canonical name
is superseded when an rte_devargs exists describing the device. In such
case, the device takes the given name found within the rte_devargs.

As the rte_devargs is linked to the rte_pci_device during scanning, it
can be avoided during the probe. Additionally, this fixes the issue of
the rte_devargs lookup not being done within rte_pci_probe_one.

Fixes: beec692c51 ("eal: add name field to generic device")
Cc: stable@dpdk.org

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2017-07-20 00:40:28 +03:00
..
bsdapp bus/pci: use given name as generic name 2017-07-20 00:40:28 +03:00
common bus/pci: use given name as generic name 2017-07-20 00:40:28 +03:00
linuxapp bus/pci: use given name as generic name 2017-07-20 00:40:28 +03:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00