vdev: rename nonpci_devs as vdev

The name "nonpci_devs" for virtual devices is ambiguous as a physical
device can also be non-PCI (ex: usb, sata, ...). A better name for this
file is "vdev" as it only deals with virtual devices.

This patch doesn't introduce any change except renaming.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Olivier Matz 2014-04-11 13:45:03 +02:00 committed by Thomas Monjalon
parent abf135ba8c
commit 9fa5e2b026
6 changed files with 9 additions and 9 deletions

View File

@ -69,7 +69,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_errno.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_cpuflags.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_hexdump.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_whitelist.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_nonpci_devs.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_vdev.c
CFLAGS_eal.o := -D_GNU_SOURCE
#CFLAGS_eal_thread.o := -D_GNU_SOURCE

View File

@ -854,8 +854,8 @@ rte_eal_init(int argc, char **argv)
rte_eal_mcfg_complete();
if (rte_eal_non_pci_ethdev_init() < 0)
rte_panic("Cannot init non-PCI eth_devs\n");
if (rte_eal_vdev_init() < 0)
rte_panic("Cannot init virtual devices\n");
RTE_LCORE_FOREACH_SLAVE(i) {

View File

@ -80,7 +80,7 @@ struct device_init dev_types[] = {
};
int
rte_eal_non_pci_ethdev_init(void)
rte_eal_vdev_init(void)
{
struct rte_devargs *devargs;
uint8_t i;

View File

@ -197,10 +197,10 @@ int rte_eal_intr_init(void);
int rte_eal_alarm_init(void);
/**
* This function initialises any non-PCI i.e. dummy ethernet devices
* This function initialises any virtual devices
*
* This function is private to the EAL.
*/
int rte_eal_non_pci_ethdev_init(void);
int rte_eal_vdev_init(void);
#endif /* _EAL_PRIVATE_H_ */

View File

@ -77,7 +77,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_errno.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_cpuflags.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_hexdump.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_devargs.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_nonpci_devs.c
SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_vdev.c
CFLAGS_eal.o := -D_GNU_SOURCE
CFLAGS_eal_thread.o := -D_GNU_SOURCE

View File

@ -1046,8 +1046,8 @@ rte_eal_init(int argc, char **argv)
rte_eal_mcfg_complete();
if (rte_eal_non_pci_ethdev_init() < 0)
rte_panic("Cannot init non-PCI eth_devs\n");
if (rte_eal_vdev_init() < 0)
rte_panic("Cannot init virtual devices\n");
TAILQ_FOREACH(solib, &solib_list, next) {
solib->lib_handle = dlopen(solib->name, RTLD_NOW);