Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3574738pxb; Mon, 24 Jan 2022 12:34:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEvfSY8XQr9IDjh6oTu5T+TE7WW3UaSpxdUg5bcv6AhgvsGna0VcHvJCDR/XqsMvf9l360 X-Received: by 2002:a63:3d0e:: with SMTP id k14mr12765790pga.484.1643056486116; Mon, 24 Jan 2022 12:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056486; cv=none; d=google.com; s=arc-20160816; b=IljdfILv3G3w3CULXlMvFxYialdJ00JdO0fUNRk9xv+JgeXsqeT45r9ySbSIguz2zW TudXjGfEWlsHGmargALrgkDjZA2NfzvqszeO9wD/YZXErNbxnFZv15rubkc1Dw8Vf+/C 0oEfrwnzHY3XSbYEnWwwPl1sB47/dMbuhb4eGvFD1cgNOA5gzQvJOb3rcgck9rQq2KOf X2J+Z21iepAW7o6NEN/aGBrrdToz3XkCkgJ/n+5nokjwewfj86eC1/Q367CW+i+P4hFV vfXwh9R2rreXfvA4FxLWL7qcpsyrlGHbKZTTER9+sGfzRLfGipkEqbZrihC7P8VwHKRo THJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=W0AXVT+QpbyXbFK/p7sjAUFUOWxlWkDGw4y8O/bzb5k=; b=GDBXapnVHkHlroyLCzT2gnICoTPXXqsp4K8PjpNKEQ6gvWGiKtb/spkdZaFP8ayxly jhXM9HEtKWIzQQuvKHa9r376JiyHCeFkv/n4JWMmMVaw2WTv4PwrHEFgC9KwAeTyWZEY sPv43asa+eLIZsvA/UIVb+l2pbnf8Ei+axV8HArG7AF1xOm0LKq+JZScWN54lf6c3++C SrVIGRtNn5+zLzKUBn9qx3vIkI3jb2FsN4esWMkOsNfW0ym1+56hBLMocYk3U/WE6zLh txu4lCp/THuxel2KG1IUUZ+5q5upMERFHeOGSTmjLf7MAC3PNObglt8t6TLC7qW3BWJm DlBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NJJm1Psy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc10si330764pjb.183.2022.01.24.12.34.24; Mon, 24 Jan 2022 12:34:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NJJm1Psy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234635AbiAXToV (ORCPT + 99 others); Mon, 24 Jan 2022 14:44:21 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52872 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352276AbiAXTaD (ORCPT ); Mon, 24 Jan 2022 14:30:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4E699B8122C; Mon, 24 Jan 2022 19:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64AF8C340E5; Mon, 24 Jan 2022 19:29:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052599; bh=4S2dYCqoHBKcD8cOK9/6OdcbmPKRa6oX9Z0TpfEVuIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NJJm1PsyQxTpVWO9TeY+dabjxnCC6uHIGPQaTLUOWYNsYaJOHUjrkYY7u6L+qbqqh gNkux9HEmEq91nvpyHdvQI1MDG0odBgRLbswctZU3E9um+Cb6xENw+6DlJnJqxS86H sAfYHibQMAf8XBKTlzwfhqJP0KHlUSqkAKmROsPw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Dickman , Roi Dayan , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.4 113/320] net/mlx5e: Dont block routes with nexthop objects in SW Date: Mon, 24 Jan 2022 19:41:37 +0100 Message-Id: <20220124183957.554448069@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maor Dickman [ Upstream commit 9e72a55a3c9d54b38a704bb7292d984574a81d9d ] Routes with nexthop objects is currently not supported by multipath offload and any attempts to use it is blocked, however this also block adding SW routes with nexthop. Resolve this by returning NOTIFY_DONE instead of an error which will allow such a route to be created in SW but not offloaded. This fix also solve an issue which block adding such routes on different devices due to missing check if the route FIB device is one of multipath devices. Fixes: 6a87afc072c3 ("mlx5: Fail attempts to use routes with nexthop objects") Signed-off-by: Maor Dickman Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c b/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c index bdc7f915d80e3..101667c6b5843 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c @@ -265,10 +265,8 @@ 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); - } + if (fi->nh) + return NOTIFY_DONE; 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.34.1