]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Stub out ipv6 tun create header function
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 22:38:30 +0000 (15:38 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Nov 2019 21:18:20 +0000 (13:18 -0800)
commit668171ae948e57a374f8cdd7e9e9e76b55a9c876
treeb7166c2ae912bc4abdbcc3c04cf2a7507fcd8794
parent5ec31ea4cb9bf441672a2a17e9cd06c07e3bb236
net/mlx5e: TC, Stub out ipv6 tun create header function

Improve mlx5e_route_lookup_ipv6 function structure by avoiding #ifdef then
return -EOPNOTSUPP in the middle of the function code.

To do so, we stub out mlx5e_tc_tun_create_header_ipv6 which is the only
caller of this helper function to avoid calling it altogether
when ipv6 is compiled out, which should also cleanup some compiler
warnings of unused variables.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h