]> 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)
commitb3dbc0483440d6ee475af2e51f4008b259c961a3
tree4913cef6883384d3b6818e1db1a8cb088f45850c
parentd7ebfd6b418529eb2c29a503ab0886af186c20b2
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