diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-09-01 10:37:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-01 09:44:56 -0700 |
commit | e73226384948e9b35823150cadd9a3ea4ca9fc97 (patch) | |
tree | f653a6d167e16cb3d6479dc5add7e1f057b385b6 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | de7d62952b01755f9885bbe945b141d9d4338e55 (diff) | |
download | op-kernel-dev-e73226384948e9b35823150cadd9a3ea4ca9fc97.zip op-kernel-dev-e73226384948e9b35823150cadd9a3ea4ca9fc97.tar.gz |
mlxsw: spectrum_router: Fix netevent notifier registration
Currently the notifier is registered for every asic instance, however the
same block. Fix this by moving the registration to module init.
Fixes: c723c735fa6b ("mlxsw: spectrum_router: Periodically update the kernel's neigh table")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index ab3feb8..ac48abe 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -587,6 +587,8 @@ int mlxsw_sp_router_neigh_construct(struct net_device *dev, struct neighbour *n); void mlxsw_sp_router_neigh_destroy(struct net_device *dev, struct neighbour *n); +int mlxsw_sp_router_netevent_event(struct notifier_block *unused, + unsigned long event, void *ptr); int mlxsw_sp_kvdl_alloc(struct mlxsw_sp *mlxsw_sp, unsigned int entry_count); void mlxsw_sp_kvdl_free(struct mlxsw_sp *mlxsw_sp, int entry_index); |