]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b7b52aa5a18c23d2b3491e0036492080eb70825
treeb4cc9937cf91242f72a7ae1476e70b16941cd4d5
parent2ec3e24bc27800f5ad8dfe975d294096ffedd9be
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