OSDN Git Service

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

The function removes the FDB entry that directs the macvlan's MAC to the
router port. It is called from both the netdev notifier block and the
inetaddr notifier block that will soon hold the router lock.

Make sure that only the netdev notifier calls the exported version, so
that is will take the router lock, which will already be held by the
inetaddr notifier.

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