mlxsw: spectrum_router: Don't ignore IPv6 notifications
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 Aug 2017 11:28:31 +0000 (13:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Aug 2017 22:36:01 +0000 (15:36 -0700)
We now have all the necessary IPv6 infrastructure in place, so stop
ignoring these notifications.

Signed-off-by: Ido Schimmel <idosch@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_router.c

index 45cf32ca4126091656045b586a0a7ad9200212cf..93b6da88e79c90dc8e4fba3eecb8c9a8c08769e6 100644 (file)
@@ -3912,7 +3912,7 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,
        struct fib_notifier_info *info = ptr;
        struct mlxsw_sp_router *router;
 
-       if (!net_eq(info->net, &init_net) || info->family != AF_INET)
+       if (!net_eq(info->net, &init_net))
                return NOTIFY_DONE;
 
        fib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);