Commit f0a66984 authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

mlxsw: spectrum_router: Add proper function documentation

Suppress following warnings when compiling with W=1:

drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:1552: warning:
Function parameter or member 'mlxsw_sp' not described in
'__mlxsw_sp_ipip_entry_update_tunnel'
drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:1552: warning:
Function parameter or member 'ipip_entry' not described in
'__mlxsw_sp_ipip_entry_update_tunnel'
drivers/net/ethernet/mellanox/mlxsw//spectrum_router.c:1552: warning:
Function parameter or member 'extack' not described in
'__mlxsw_sp_ipip_entry_update_tunnel'
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5769e39c
...@@ -1535,13 +1535,17 @@ static void mlxsw_sp_nexthop_rif_update(struct mlxsw_sp *mlxsw_sp, ...@@ -1535,13 +1535,17 @@ static void mlxsw_sp_nexthop_rif_update(struct mlxsw_sp *mlxsw_sp,
struct mlxsw_sp_rif *rif); struct mlxsw_sp_rif *rif);
/** /**
* Update the offload related to an IPIP entry. This always updates decap, and * __mlxsw_sp_ipip_entry_update_tunnel - Update offload related to IPIP entry.
* in addition to that it also: * @mlxsw_sp: mlxsw_sp.
* @recreate_loopback: recreates the associated loopback RIF * @ipip_entry: IPIP entry.
* @keep_encap: updates next hops that use the tunnel netdevice. This is only * @recreate_loopback: Recreates the associated loopback RIF.
* @keep_encap: Updates next hops that use the tunnel netdevice. This is only
* relevant when recreate_loopback is true. * relevant when recreate_loopback is true.
* @update_nexthops: updates next hops, keeping the current loopback RIF. This * @update_nexthops: Updates next hops, keeping the current loopback RIF. This
* is only relevant when recreate_loopback is false. * is only relevant when recreate_loopback is false.
* @extack: extack.
*
* Return: Non-zero value on failure.
*/ */
int __mlxsw_sp_ipip_entry_update_tunnel(struct mlxsw_sp *mlxsw_sp, int __mlxsw_sp_ipip_entry_update_tunnel(struct mlxsw_sp *mlxsw_sp,
struct mlxsw_sp_ipip_entry *ipip_entry, struct mlxsw_sp_ipip_entry *ipip_entry,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment