mlxsw: spectrum_router: Extract __mlxsw_sp_ipip_entry_update_tunnel()
authorPetr Machata <petrm@mellanox.com>
Fri, 3 Nov 2017 09:03:37 +0000 (10:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 00:15:17 +0000 (09:15 +0900)
commit65a6121b30a65bb4b61322c895bf835fedd6e315
treeb2ac161cd5fcaebfd85530a159de17a016ff2f65
parent7e75af6366b90bbd0cfb62c9c5aeb5e3ec37bcd4
mlxsw: spectrum_router: Extract __mlxsw_sp_ipip_entry_update_tunnel()

The work that's done by mlxsw_sp_netdevice_ipip_ol_vrf_event() is a good
basis for a more versatile function that would take care of all sorts of
tunnel updates requests: __mlxsw_sp_ipip_entry_update_tunnel(). Extract
that function. Factor out a helper mlxsw_sp_ipip_entry_ol_lb_update() as
well.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c