]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_ipip: Handle underlay device change
authorPetr Machata <petrm@mellanox.com>
Fri, 3 Nov 2017 09:03:43 +0000 (10:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Nov 2017 00:15:18 +0000 (09:15 +0900)
commitda5ff9108a1281d7736427767b85b09e294796fb
tree3858d646f2502d8783d60c5bdb742a830686ce42
parentb63c85a6921cb2dad50776485bfe742dedc38f30
mlxsw: spectrum_ipip: Handle underlay device change

When a bound device of an IP-in-IP tunnel changes, such as through
'ip tunnel change name $name dev $dev', the loopback backing the tunnel
needs to be recreated.

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_ipip.c