99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
23 lines
416 B
C
23 lines
416 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2017 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#include "rte_hypervisor.h"
|
|
|
|
const char *
|
|
rte_hypervisor_get_name(enum rte_hypervisor id)
|
|
{
|
|
switch (id) {
|
|
case RTE_HYPERVISOR_NONE:
|
|
return "none";
|
|
case RTE_HYPERVISOR_KVM:
|
|
return "KVM";
|
|
case RTE_HYPERVISOR_HYPERV:
|
|
return "Hyper-V";
|
|
case RTE_HYPERVISOR_VMWARE:
|
|
return "VMware";
|
|
default:
|
|
return "unknown";
|
|
}
|
|
}
|