numam-dpdk/lib
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
..
librte_acl lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_bitratestats fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cfgfile
librte_cmdline lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_compat fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_cryptodev cryptodev: fix build with icc 2017-07-12 14:40:40 +02:00
librte_distributor lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_eal bus/pci: use given name as generic name 2017-07-20 00:40:28 +03:00
librte_efd update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_ether ethdev: introduce lock-free Tx queue capability 2017-07-18 15:32:55 +03:00
librte_eventdev update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_gro lib/gro: support TCP/IPv4 2017-07-09 18:14:54 +02:00
librte_hash lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_ip_frag ip_frag: check for x86 rather than SSE4 2017-07-04 14:35:41 +02:00
librte_jobstats jobstats: fix typo in doxygen comment 2017-07-20 00:40:27 +03:00
librte_kni kni: allocate no more mbuf than empty slots in queue 2017-07-01 12:54:51 +02:00
librte_kvargs
librte_latencystats
librte_lpm lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_mbuf mbuf: fix VXLAN port in comment 2017-07-19 09:17:35 +03:00
librte_mempool mem: do not advertise physical address when no hugepages 2017-07-04 17:51:22 +02:00
librte_meter
librte_metrics metrics: fix name string termination 2017-07-20 00:06:07 +03:00
librte_net update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_pdump pdump: remove unnecessary header include 2017-06-14 23:45:51 +02:00
librte_pipeline
librte_port
librte_power
librte_reorder fix typos using codespell utility 2017-06-14 23:54:13 +02:00
librte_ring ring: allow non power-of-2 sizes 2017-07-07 09:29:17 +02:00
librte_sched sched: remove check for SSE4 2017-07-04 14:39:18 +02:00
librte_table update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
librte_timer lib: remove duplicate includes 2017-07-16 17:30:06 +02:00
librte_vhost vhost: print reason of NUMA node query failure 2017-07-07 02:17:56 +02:00
Makefile lib/gro: add Generic Receive Offload API framework 2017-07-09 18:14:46 +02:00