]> 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)
commit052bd385b9459ca4db98c902a779a60bad81e51d
tree02f1f5e97a6e7ff5a2ea2a18ece117280cccd762
parented2a913a4cfa57c58861f67b3277b6dde6a03b6a
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