OSDN Git Service

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)
commit48fac8852637f00abcb05b1af3489e3cd45cda58
tree02f1f5e97a6e7ff5a2ea2a18ece117280cccd762
parent3ae6ec08292f01c6782d1a80be0b2cc675e0ecfc
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