From: Shai Brandes <shaibran@amazon.com>
remove all other operating system enumeration as they
are unrelated to DPDK. Use a constant value instead.
Signed-off-by: Shai Brandes <shaibran@amazon.com>
Reviewed-by: Amit Bernstein <amitbern@amazon.com>
---
drivers/net/ena/base/ena_defs/ena_admin_defs.h | 13 +------------
drivers/net/ena/base/ena_plat_dpdk.h | 1 +
2 files changed, 2 insertions(+), 12 deletions(-)
@@ -933,19 +933,8 @@ struct ena_admin_feature_rss_flow_hash_input {
uint16_t enabled_input_sort;
};
-enum ena_admin_os_type {
- ENA_ADMIN_OS_LINUX = 1,
- ENA_ADMIN_OS_WIN = 2,
- ENA_ADMIN_OS_DPDK = 3,
- ENA_ADMIN_OS_FREEBSD = 4,
- ENA_ADMIN_OS_IPXE = 5,
- ENA_ADMIN_OS_ESXI = 6,
- ENA_ADMIN_OS_MACOS = 7,
- ENA_ADMIN_OS_GROUPS_NUM = 7,
-};
-
struct ena_admin_host_info {
- /* defined in enum ena_admin_os_type */
+ /* Host OS type defined as ENA_ADMIN_OS_* */
uint32_t os_type;
/* os distribution string format */
@@ -340,5 +340,6 @@ static __rte_always_inline int ena_bits_per_u64(uint64_t bitmap)
return count;
}
+#define ENA_ADMIN_OS_DPDK 3
#endif /* DPDK_ENA_COM_ENA_PLAT_DPDK_H_ */