numam-dpdk/lib/librte_eal/common/eal_common_hypervisor.c
Shahaf Shuler 5feecc57d9 align SPDX Mellanox copyrights
Aligning Mellanox SPDX copyrights to a single format.
In addition replace to SPDX licence files which were missed.

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2018-04-11 01:47:47 +02:00

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";
}
}