mlxsw: spectrum_router: Fix netevent notifier registration
authorJiri Pirko <jiri@mellanox.com>
Thu, 1 Sep 2016 08:37:43 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
commite73226384948e9b35823150cadd9a3ea4ca9fc97
treef653a6d167e16cb3d6479dc5add7e1f057b385b6
parentde7d62952b01755f9885bbe945b141d9d4338e55
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c