OSDN Git Service

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)
commitaa6fd8f177d685b712595cd139334853d3f58cd9
tree0716cf0f339ccb943ba9a3678671be3987c4253c
parent45bce5c99d462bf5a6dfbb83681bab53c7b4fe2c
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