Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3602676pxb; Mon, 24 Jan 2022 13:16:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQZ/TQ8JtcLo+kG4I9o0Ls0+5ed8taFMi5vwtynQKtWqZjAYhn/b6LlqnlfPThzf9bWwjR X-Received: by 2002:a17:903:1d0:b0:14b:e03:35 with SMTP id e16-20020a17090301d000b0014b0e030035mr15603614plh.65.1643058995974; Mon, 24 Jan 2022 13:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058995; cv=none; d=google.com; s=arc-20160816; b=XVn4hkviR4VLPS4T08NIzzd583vSAwwQzs1mtoY6GNMlDG8A6qP5QJFBAQxH/ejEtU jMIYsDCiBh29QsomERFBJe6FkpTi8FAN+pZdZsQUbRCVaySt66ymQ+FBLGtW+7vukxrT 0zpc/W2Mhcjt3liV+3LbfRCaofPvaQnKGYtmOS9v9Lf84nfewR1BLfqwLOWY2XfbmMBF 1vomWxUR0g0dgc8n57sRe7TpxAGnuFbjGYXJHhJtWLHQMr/INWt5vxutukcKqdZu8DVQ B+y1liMRAExKZVxbqhtqlF0uBI4rAK42f57RGRVz2Uk6LB0+bMcSA68u0FTVXf9VFzV+ Rz8w== 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=nFCY6IWOqUm5YaUKLwxSexjifJKnD9VXiwsa3tSCJRU=; b=XXRNL3v5PU1Io+DHb88bZWsPrG6ahzsY4uczkAk98yhUhr7eY5+Q+QsvBFEiLD7xvF cOVU039hC649Wihe+7VjgInNbUFEzAihbmZBfG7AKSIzW5pNHo4grkln0vlBtdPJVW0g ndDN9TfhxicT+fncBukMk0i0qW6UtsYuhQIMu9ki1V2KxTaFK6Drk+lxC4RK7gODsIbT QcZML2v+n32B96x6BFeweBLskM0j3m94k7IPMWhzIJdzfjGKoQWIXFk4euOCuY80p+Tq I3HqsVQU7bQBdtiV8PJIebHv8Vl4wpkqTzrOhVmmnmq7oKDXpfDrYJgWdksbbs8L7lWU a5kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x4sdZS08; 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 q65si6270469pgq.98.2022.01.24.13.16.22; Mon, 24 Jan 2022 13:16:35 -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=x4sdZS08; 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 S1392168AbiAXUue (ORCPT + 99 others); Mon, 24 Jan 2022 15:50:34 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:34284 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383079AbiAXU0r (ORCPT ); Mon, 24 Jan 2022 15:26:47 -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 2B57AB8123D; Mon, 24 Jan 2022 20:26:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C819C340E5; Mon, 24 Jan 2022 20:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056004; bh=NT3dQlqn3L5kXWshF8v8pQDahNIDvVSGsE62MASjpNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x4sdZS08khVEPBxrL8Ho10vTv9/qFcq1OfjFaxK7112rstnZv+Nc1JQljUz9SfbPS f/y3UKIahrMFojGLG848bxbRVuZ01ZySPSQb9JATTcFPrphYLe+r0wlFNKYCXOUCx1 ffYM2/cxYFOVSEvRSaSL92wZhhlhlsGfs8T3skYQ= 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.15 339/846] net/mlx5e: Dont block routes with nexthop objects in SW Date: Mon, 24 Jan 2022 19:37:36 +0100 Message-Id: <20220124184112.612659954@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 21fdaf708f1fe..30282d86e6b96 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