]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c05153774d602bc86950bda82daa246244fb26e
treeed02247bb5dc120244a21295cab754c2459a05c9
parenta078b84b550419f81694276641ef80515723f7ec
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: c40de89474ab ("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