aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-06-18 18:12:46 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-18 09:45:36 -0700
commitf6c3bb75165cb4d0a0beb2ea6df5b392b7131645 (patch)
treed5c5837ff0a017a7113d1b11ff8a100d53f6f317 /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
parentipv6: Extend notifier info for multipath routes (diff)
downloadlinux-dev-f6c3bb75165cb4d0a0beb2ea6df5b392b7131645.tar.xz
linux-dev-f6c3bb75165cb4d0a0beb2ea6df5b392b7131645.zip
mlxsw: spectrum_router: Ignore IPv6 multipath notifications
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
index a6055107c5f2..ca47aa74e5d5 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
@@ -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;
}