mlxsw: spectrum_router: Don't destroy RIF if L3 slave
authorIdo Schimmel <idosch@mellanox.com>
Thu, 16 Mar 2017 08:08:17 +0000 (09:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2017 17:18:34 +0000 (10:18 -0700)
commit9db032bb1e8eed0721884c01a6c87f55f3d400fa
tree155c0f7202f7ceb4ded721fe19d3f158392adf72
parent57837885e3c74e42596a8d8c3e6831be1c0a7974
mlxsw: spectrum_router: Don't destroy RIF if L3 slave

We usually destroy the netdev's router interface (RIF) when the last IP
address is removed from it.

However, we shouldn't do that if it's enslaved to an L3 master device.

Signed-off-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