]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Embed netevent notifier block in router struct
authorIdo Schimmel <idosch@mellanox.com>
Thu, 2 Nov 2017 16:14:06 +0000 (17:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 06:40:41 +0000 (15:40 +0900)
commit1524d470b48ba77852cc289a4c4d043bb6bad005
tree02f1f5e97a6e7ff5a2ea2a18ece117280cccd762
parent7ea1f7541af83bd2ccd1e7dbbb206558372f6ea4
mlxsw: spectrum_router: Embed netevent notifier block in router struct

We are going to need to respond to netevents notifying us about
multipath hash updates by configuring the device's hash parameters.

Embed the netevent notifier in the router struct so that we could
retrieve it upon notifications and use it to configure the device.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.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