From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT:
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h

Change-Id: I4156bb1bb885f2f506e212654ccb68453802859e
---
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.h
@@ -37,7 +37,7 @@
 #include "accel/accel.h"
 #include "en_accel/ktls_txrx.h"
 
-#ifdef CONFIG_MLX5_EN_TLS
+#if defined(CONFIG_MLX5_EN_TLS) && defined(HAVE_UAPI_LINUX_TLS_H)
 
 #include <linux/skbuff.h>
 #include "en.h"
@@ -86,6 +86,6 @@ static inline u16 mlx5e_tls_get_stop_roo
 	return 0;
 }
 
-#endif /* CONFIG_MLX5_EN_TLS */
+#endif /* CONFIG_MLX5_EN_TLS && HAVE_UAPI_LINUX_TLS_H */
 
 #endif /* __MLX5E_TLS_RXTX_H__ */
