ethdev: add unique name to devices
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 25 Jun 2014 20:07:44 +0000 (21:07 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 1 Jul 2014 14:25:35 +0000 (16:25 +0200)
commit83b41136934d202bbedb39b0d5f23c6d542bfd1d
tree4d8d63427df12a075e025fc492f4981cda3d5475
parent2efb58cbab6e91f8581fc8dc9032b72d7b53ffd3
ethdev: add unique name to devices

Adding support to rte_eth_dev_data structure to support unique
name identifier for ethdevs to support adding slave ethdevs
(specifically virtual devices which have no public unique
identifier) to a link bonding device. This changes the API
rte_eth_dev_allocate() to require a const char *name when
allocating a ethdev, which also verifies that the name is
unique and hasn’t been already used by an existed allocated
rte_eth_dev. Also contains updates to virtual pmd’s to now call
the API with a name parameter.

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_pmd_pcap/rte_eth_pcap.c
lib/librte_pmd_ring/rte_eth_ring.c
lib/librte_pmd_ring/rte_eth_ring.h
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c