From: Shai Brandes <shaib...@amazon.com>

remove all other operating system enumeration as they
are unrelated to DPDK. Use a constant value instead.

Signed-off-by: Shai Brandes <shaib...@amazon.com>
Reviewed-by: Amit Bernstein <amitb...@amazon.com>
---
 drivers/net/ena/hal/ena_defs/ena_admin_defs.h | 13 +------------
 drivers/net/ena/hal/ena_plat_dpdk.h           |  1 +
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/drivers/net/ena/hal/ena_defs/ena_admin_defs.h 
b/drivers/net/ena/hal/ena_defs/ena_admin_defs.h
index ce8a26721e..c3910c50cc 100644
--- a/drivers/net/ena/hal/ena_defs/ena_admin_defs.h
+++ b/drivers/net/ena/hal/ena_defs/ena_admin_defs.h
@@ -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 */
diff --git a/drivers/net/ena/hal/ena_plat_dpdk.h 
b/drivers/net/ena/hal/ena_plat_dpdk.h
index 5f7cbd1ee7..aa8fbb0cd9 100644
--- a/drivers/net/ena/hal/ena_plat_dpdk.h
+++ b/drivers/net/ena/hal/ena_plat_dpdk.h
@@ -341,5 +341,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_ */
-- 
2.17.1

Reply via email to