2017-11-30 21:27:01 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2018-03-20 19:20:35 +00:00
|
|
|
* Copyright 2017 Mellanox Technologies, Ltd
|
2017-11-30 21:27:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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";
|
|
|
|
}
|
|
|
|
}
|