mlxsw: spectrum_router: Ignore IPv6 multipath notifications
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jun 2019 15:12:46 +0000 (18:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jun 2019 16:45:36 +0000 (09:45 -0700)
IPv6 multipath notifications are about to be sent, but mlxsw is not
ready to process them, so ignore them.

The limitation will be lifted by a subsequent patch which will also stop
the kernel from sending a notification for each nexthop.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

index a6055107c5f26210244bf7f3963faf1034d759ac..ca47aa74e5d5fdcaedd3f5b8bfc3bccc6762bfbb 100644 (file)
@@ -6203,6 +6203,8 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,
                                NL_SET_ERR_MSG_MOD(info->extack, "IPv6 route with nexthop objects is not supported");
                                return notifier_from_errno(-EINVAL);
                        }
+                       if (fen6_info->multipath_rt)
+                               return NOTIFY_DONE;
                }
                break;
        }