net/mlx5e: Fix tc_tun.h to verify MLX5_ESWITCH config
authorVlad Buslov <vladbu@nvidia.com>
Tue, 9 Feb 2021 08:11:45 +0000 (10:11 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Feb 2021 04:47:13 +0000 (20:47 -0800)
commit36280f0797dfca856cda25feec085b03bc4f5609
treeed02247bb5dc120244a21295cab754c2459a05c9
parent793985432daadaf443b213fdd30123778a7e40cf
net/mlx5e: Fix tc_tun.h to verify MLX5_ESWITCH config

Exclude contents of tc_tun.h header when CONFIG_MLX5_ESWITCH is disabled to
prevent compile-time errors when compiling with such config.

Fixes: 0d9f96471493 ("net/mlx5e: Extract tc tunnel encap/decap code to dedicated file")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h