eal: add name field to generic device
authorJan Blunck <jblunck@infradead.org>
Tue, 11 Apr 2017 15:44:08 +0000 (17:44 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 18 Apr 2017 16:57:56 +0000 (18:57 +0200)
commitbeec692c515774d5b44cbcf580c8b90bd283b398
treeec6640b4feb666d1f57ba14f6780aeaea0329785
parent5d2aa461cbcae1b5ede5cee0b0b3a1228c4afc59
eal: add name field to generic device

This adds a name field to the generic struct rte_device. The EAL is
checking for the name being populated when registering a device but
doesn't enforce global unique names as this is left to the bus
implementations.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/bsdapp/eal/eal_pci.c
lib/librte_eal/common/eal_common_dev.c
lib/librte_eal/common/eal_common_vdev.c
lib/librte_eal/common/include/rte_dev.h
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/linuxapp/eal/eal_pci.c