From: Roy Novich <royno@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h

Change-Id: I59263cab8ba56a48ae3804fee417ba0bc46c4823
---
 drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
@@ -46,7 +46,11 @@ struct lag_tracker {
 	enum   netdev_lag_tx_type           tx_type;
 	struct netdev_lag_lower_state_info  netdev_state[MLX5_MAX_PORTS];
 	unsigned int is_bonded:1;
+#ifdef HAVE_INFO_HASH_TYPE
 	enum netdev_lag_hash hash_type;
+#else
+	int    hash_type;
+#endif
 	unsigned int has_inactive:1;
 };
 
