]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Move handling of router events to router code
authorPetr Machata <petrm@nvidia.com>
Sun, 8 May 2022 08:08:18 +0000 (11:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:46:20 +0000 (11:46 +0100)
commit1e36d66de773975b93c5fd199ee74f7f5a98788a
treefa0dbef21f778c253a4771c8a2573fef16a20f80
parent3c85982b56280648c7edd50a5427cd2c1bf66a03
mlxsw: spectrum: Move handling of router events to router code

The events NETDEV_PRE_CHANGEADDR, NETDEV_CHANGEADDR and NETDEV_CHANGEMTU
have implications for in-ASIC router interface objects, and as such are
handled in the router module. Move the handling from the central dispatcher
in spectrum.c to the new notifier handler in the router module.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c