From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37FD9C28CC2 for ; Thu, 30 May 2019 03:08:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 110812445F for ; Thu, 30 May 2019 03:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559185693; bh=gtWl6nVvDKdcdJ9S2IFPfo3eOkkpV2IttxPzujc1RD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=LwAty7jRKaX1yvd82xcF/dVocUp+uBP/rUfnG1Qoe60cL/WuYugJIKbu4xM6/yjht i1O6XmNEb8MkgD+HFF/KdTtZRgIkA91KQ0mhz5MJZ2U4WcqrswnNn5LhZ83Wdv8XLJ gsmUXmpV+4f8biYb95Y1J+1MntrNxmErbec5jMYY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbfE3DIL (ORCPT ); Wed, 29 May 2019 23:08:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbfE3DIE (ORCPT ); Wed, 29 May 2019 23:08:04 -0400 Received: from kenny.it.cumulusnetworks.com. (fw.cumulusnetworks.com [216.129.126.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC70924466; Thu, 30 May 2019 03:08:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559185684; bh=gtWl6nVvDKdcdJ9S2IFPfo3eOkkpV2IttxPzujc1RD4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nowYzj1FZ0RE9S+Kw1v2ZnIr8DUvyLle/aD6GDOGGD2vbzU9ASJTKXObZ9oVAAAUo yfRbGkdnFMhbtamc1SuGE7ub20bJmFMH0RqJDLgfFDeLA25ojav81k24BagZOVHINx ADxD6+ChSWcBaCOonE6EFUnzn6yf3kKeWhPf9dFI= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, saeedm@mellanox.com, kafai@fb.com, weiwan@google.com, David Ahern Subject: [PATCH net-next 6/7] mlx5: Fail attempts to use routes with nexthop objects Date: Wed, 29 May 2019 20:07:59 -0700 Message-Id: <20190530030800.1683-7-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190530030800.1683-1-dsahern@kernel.org> References: <20190530030800.1683-1-dsahern@kernel.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Ahern Fail attempts to use nexthop objects with routes until support can be properly added. Signed-off-by: David Ahern --- drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c b/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c index 2cbfaa8da7fc..e69766393990 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c @@ -262,6 +262,10 @@ static int mlx5_lag_fib_event(struct notifier_block *nb, fen_info = container_of(info, struct fib_entry_notifier_info, info); fi = fen_info->fi; + if (fi->nh) { + NL_SET_ERR_MSG_MOD(info->extack, "IPv4 route with nexthop objects is not supported"); + return notifier_from_errno(-EINVAL); + } fib_dev = fib_info_nh(fen_info->fi, 0)->fib_nh_dev; if (fib_dev != ldev->pf[0].netdev && fib_dev != ldev->pf[1].netdev) { -- 2.11.0