]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ipip: Pass IP tunnel parameters by reference and as 'const'
authorAmit Cohen <amcohen@nvidia.com>
Thu, 23 Sep 2021 12:36:48 +0000 (15:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 09:26:51 +0000 (10:26 +0100)
commit12515051b67150ef06f733b5375c6e64ad1dad38
tree0716cf0f339ccb943ba9a3678671be3987c4253c
parent12f8fde631f7b6ad1c02bfeeb3618be8b87ba445
mlxsw: spectrum_ipip: Pass IP tunnel parameters by reference and as 'const'

Currently, there are several functions that handle 'struct ip_tunnel_parm'
and 'struct __ip6_tnl_parm'.

Change the mentioned functions to get IP tunnel parameters by reference
and as 'const'.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c