Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3646144pxb; Mon, 24 Jan 2022 14:19:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQCMRLPsWjMbKqBC5AjXBYqvuj+jUPH8125IotR/v0lKAoBVSjmeD8zWIWw3400XhMwBmR X-Received: by 2002:a62:e210:0:b0:4ca:2657:b721 with SMTP id a16-20020a62e210000000b004ca2657b721mr3070782pfi.24.1643062747724; Mon, 24 Jan 2022 14:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643062747; cv=none; d=google.com; s=arc-20160816; b=IpL7pg/aaFyELF20SlHInuWQYyxaxYMVf2kCEiPWY8+mN3AHmbYdxAj1vypKP39Dz3 sj4F1mK90Xy6oR4+kdf5el4SdqjkaFDwAHHxIvY3k2CqdRhrQEnwKi+WQEfUH2xUQzOe TdCOn907VbJjQLJyGuELqYSMGdQ8xCJk5wrzw5ZRfE3TEc1vSpz5G1kg9y1Om/CtukkY nlQpGuxmier28itRHLnO7dmkbuz57exLk1aU8MVamhDskCGQzX5Ul73nUOMPKqzuvcew TCrCv33q+iO0lBe+2+I6G8WGlb6JvWtQNZYwPCDhWc//gxMPPZJc1f6q9FTaEPxiYiYe 2rKg== 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=wCoU2VXsZethllOSxpu5fn31uBDp72kek6Ic9tljm7o=; b=vQmyq/pLlhM7jwftC256xFlXDCFEtZYrD3H1xXuu7LaWiiHSv6gwGvis3MPWgZerXo bvVZwSEA9o1pTVGbLjXrkBepQILBdaIPxsPrT70hraB+TKrrlZjgdLsdyUxx2fw7XWft jNQ/AQCrOvozjIzCUbPUeUpxyRPZKasBScPmIgkkE0aUPp0WFRkOR2FM4eKf6YHIrjd7 BOLC6ngiiPndBHWHfCmo+GukHxaThEU26FJHuznTyVRha/uw/46Tin/yuZPiVvE5yDCI Ib2ibFdLr4sechRowOiH01jmybP3W/uCW87iIEFoRA4DtfT9ZNw207KDNKMh5F8RCm6k CamA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RVoE7Hin; 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 l24si14165512pgb.772.2022.01.24.14.18.34; Mon, 24 Jan 2022 14:19:07 -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=RVoE7Hin; 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 S1580983AbiAXWLE (ORCPT + 99 others); Mon, 24 Jan 2022 17:11:04 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:35534 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449226AbiAXVPI (ORCPT ); Mon, 24 Jan 2022 16:15:08 -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 84028B80FA3; Mon, 24 Jan 2022 21:15:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9906BC340E5; Mon, 24 Jan 2022 21:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058905; bh=BPMprMdY0fyaX+Q+LL/4riMmOaa9YNsihvpiCiAxNGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RVoE7Hin4XVCFdZNVmm4dnbrI/+Ynxu/4N2dWi1THZI1liQIU4zHlzmbrEs99UkEr Xzh2f1vhxq2blC4ToRv/lzNErqoGe3ewYmO9n0rFqAXYiYLGEh9dQKkgD1dg6gW7KU 2oShukgTWoa5othfrh+TdP7+13pGvXJNoQa/qxFA= 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.16 0408/1039] net/mlx5e: Dont block routes with nexthop objects in SW Date: Mon, 24 Jan 2022 19:36:37 +0100 Message-Id: <20220124184139.026982325@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 bf4d3cbefa633..1ca01a5b6cdd8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c @@ -268,10 +268,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[MLX5_LAG_P1].netdev && fib_dev != ldev->pf[MLX5_LAG_P2].netdev) { -- 2.34.1