]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Add a dedicated notifier block
authorPetr Machata <petrm@nvidia.com>
Sun, 8 May 2022 08:08:15 +0000 (11:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2022 10:46:20 +0000 (11:46 +0100)
commit2ae1ab9c73e4747a1160cabd20b08add54bf71f1
tree4913cef6883384d3b6818e1db1a8cb088f45850c
parent16f8e49db5c4169d01156df073ffc0912eb2f5c3
mlxsw: spectrum_router: Add a dedicated notifier block

Currently all netdevice events are handled in the centralized notifier
handler maintained by spectrum.c. Since a number of events are involving
router code, spectrum.c needs to dispatch them to spectrum_router.c. The
spectrum module therefore needs to know more about the router code than it
should have, and there is are several API points through which the two
modules communicate.

To simplify the notifier handlers, introduce a new notifier into 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_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h