net/mlx5e: Fix tc_tun.h to verify MLX5_ESWITCH config
Subsystems (3)
PATCH 1/1 net/mlx5e: Fix tc_tun.h to verify MLX5_ESWITCH config
From: Vlad Buslov <[email protected]>
Exclude contents of tc_tun.h header when CONFIG_MLX5_ESWITCH is disabled to prevent compile-time errors when compiling with such config.
Signed-off-by Vlad Buslov <[email protected]>
Signed-off-by Saeed Mahameed <[email protected]>
--- drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h +4 -0
@@ -11,6 +11,8 @@#include "en.h" #include "en_rep.h" +#ifdef CONFIG_MLX5_ESWITCH +enum {MLX5E_TC_TUNNEL_TYPE_UNKNOWN , MLX5E_TC_TUNNEL_TYPE_VXLAN,
@@ -99,4 +101,6 @@ int mlx5e_tc_tun_parse_udp_ports(struct mlx5e_priv *priv,void *headers_c, void *headers_v); +#endif /* CONFIG_MLX5_ESWITCH */ +#endif //__MLX5_EN_TC_TUNNEL_H__
Signature · 1 line
2.29.2