]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Support IPIP overlay VRF migration
authorPetr Machata <petrm@mellanox.com>
Mon, 16 Oct 2017 14:26:38 +0000 (16:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:30:33 +0000 (21:30 +0100)
commit88465fc234c5cc60e840956e866bbc0c5b8ef864
treef0b887ae674d0fb6c8256b90ebea0326b8995c0e
parent3e6a65835a16b0bfc40e9983c797ac87d81ed829
mlxsw: spectrum: Support IPIP overlay VRF migration

IPIP entries are created as soon as an offloadable device is created.
That means that when such a device is later moved to a different VRF,
the loopback device that backs the tunnel is wrong.

Thus when an offloadable encapsulating netdevice moves from one VRF to
another, make sure that the loopback is updated as necessary.

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