pci: introduce helpers for device name parsing/update
authorDavid Marchand <david.marchand@6wind.com>
Tue, 20 Sep 2016 12:41:22 +0000 (18:11 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Oct 2016 14:33:26 +0000 (16:33 +0200)
commitaffe1cdc009cd35a8122d8b1d5975f445d8f3d7a
tree4aada5b3059216b5696510b76d65007225015ff5
parentc830cb295411fc71c3f3d3591308d531937dd58f
pci: introduce helpers for device name parsing/update

- Move rte_eth_dev_create_unique_device_name() from ether/rte_ethdev.c to
  common/include/rte_pci.h as rte_eal_pci_device_name(). Being a common
  method, can be used across crypto/net PCI PMDs.
- Remove crypto specific routine and fallback to common name function.
- Introduce a eal private Update function for PCI device naming.

Signed-off-by: David Marchand <david.marchand@6wind.com>
[Shreyansh: Merge crypto/pci helper patches]
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_cryptodev/rte_cryptodev.c
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci.c
lib/librte_ether/rte_ethdev.c