mlxsw: spectrum_router: Prepare function for router lock introduction
authorIdo Schimmel <idosch@mellanox.com>
Thu, 20 Feb 2020 07:07:57 +0000 (09:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 18:04:34 +0000 (10:04 -0800)
commit1c6d6b514518cb83fd0570c42aaa7d1bd0b8efb4
treeb4cc9937cf91242f72a7ae1476e70b16941cd4d5
parentfbf8b356e54080cd14da8163873d582982672589
mlxsw: spectrum_router: Prepare function for router lock introduction

The function de-associates the port-vlan from its router interface
(RIF). It is called both from the netdev notifier block and the inetaddr
notifier block that will soon hold the router lock.

Make sure that router code calls the internal version, as it will
already have the router lock held when the function is called.

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