]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Support IPIP underlay VRF migration
authorPetr Machata <petrm@mellanox.com>
Fri, 3 Nov 2017 09:03:41 +0000 (10:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 00:15:18 +0000 (09:15 +0900)
commit24e862903fafe3d56d68e2a642ee0b7010970638
treea8516972477434ec1c008e494b3e168ac96d9a0f
parent150c105034a253ee8026c9aad2af47b6e40ad7b0
mlxsw: spectrum: Support IPIP underlay VRF migration

When a bound device of a tunnel netdevice changes VRF, the loopback RIF
that backs the tunnel needs to be updated and existing encapsulating
routes need to be refreshed.

Note that several tunnels can share the same bound device, in which case
all the impacted tunnels need to be updated.

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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c