Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3109074pxm; Mon, 28 Feb 2022 12:11:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJychfvWcmXGjzopjhIRLNJbDE98jclRee8q/dRPqTdJP+kvKhUiI4YP8XoX2pKzU7enE2lI X-Received: by 2002:a17:903:141:b0:150:1731:a108 with SMTP id r1-20020a170903014100b001501731a108mr21514669plc.51.1646079094904; Mon, 28 Feb 2022 12:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079094; cv=none; d=google.com; s=arc-20160816; b=UBuh+Ua74Zjw73BbFk2rjv5DQ4YTl67djxdIbzAD/iRErC5+qz4Nh2saJajNoX627l 4RWP98LnmF50smnxxlnww2mj/oYjWrpiwOm6ZIyJAAsQ0Fj+uWYH3jIAlSbAfjgeUZ/2 CelnfNMwjsjJywGOpjRp2TNCpkAS+9xITFEhPoGqNzYLOzQVDfSYXuAPwztfQDjLnnYa rAWOpFOPmG4Ue5fxJ87hn6e6jpr3PtZsdGDwDKm5cHguhmcWgeBl/pfj0Bj2yG4kPtvF 9SuTbDhNzV6kgRotUpQPzSH1t4u/yYOna9aQFnMzpNt2yQv0y2ESL1/Xh9QT23oZYAHI PGpw== 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=PHqW1nereJD0IOUnXA/KFakxbp7c5i7+x0gagaA363Q=; b=gA0RIbeFVHrmKsnss22BkIjtZjoWYbX1lJHFQ4q4jdzAx6tmB85k5sMehOXZSx3iSA sMZW45DfEWvk1SxrAAayMPboCIln2GaQYrzx5jG0vB6PjE9xz68wKKZRhO1ZeDTNQuGU pvfp1ig8jbCrGEndGaAx3Umy2Uq7Ss+MOo85wDidkhRK2P6wxu5jVPlumkZMfdO8ZCxB rZoQAxFq8/hwJpfGC9Vp48XYYpLrZ5TlI+d52uRJ8VpCfMcNoF8K7fOyeFi8qEZm3NxR /g/lmhB/xTdIZFIlM2OA9JRCe6nqaqX2UMQfgUcDS+R0DWLfJAdSOrgeCuKOt0pDT6E4 R3Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=17dX1Jtp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h14-20020a170902f70e00b0014a89adee52si10571505plo.144.2022.02.28.12.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:11:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=17dX1Jtp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47219154D01; Mon, 28 Feb 2022 11:35:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238419AbiB1Riw (ORCPT + 99 others); Mon, 28 Feb 2022 12:38:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238315AbiB1Rgs (ORCPT ); Mon, 28 Feb 2022 12:36:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF7997BBF; Mon, 28 Feb 2022 09:31:53 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8895761359; Mon, 28 Feb 2022 17:31:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CBDFC340E7; Mon, 28 Feb 2022 17:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646069509; bh=s0zOtC35QEyG/6RmIPaCTT90hzhX03S1G3ch4pgXpg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=17dX1JtpAuqna+2XOkUrQFpJ489z2VtdrivMSraLVU1grPEeuQYsUDhEHilrTN0De D1NMwYeWWsDWqgxJ5tf+TD8I51EJlZZGsk5yPao/iipLlvOCpajEJFS1+lCRmsp3zn 82dStSsh0A9elUeBLY4PYVztsE0OLgA/0uB1HsDI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ariel Levkovich , Maor Dickman , Saeed Mahameed Subject: [PATCH 5.4 28/53] net/mlx5: Fix wrong limitation of metadata match on ecpf Date: Mon, 28 Feb 2022 18:24:26 +0100 Message-Id: <20220228172250.336083429@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172248.232273337@linuxfoundation.org> References: <20220228172248.232273337@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ariel Levkovich commit 07666c75ad17d7389b18ac0235c8cf41e1504ea8 upstream. Match metadata support check returns false for ecpf device. However, this support does exist for ecpf and therefore this limitation should be removed to allow feature such as stacked devices and internal port offloaded to be supported. Fixes: 92ab1eb392c6 ("net/mlx5: E-Switch, Enable vport metadata matching if firmware supports it") Signed-off-by: Ariel Levkovich Reviewed-by: Maor Dickman Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -1977,10 +1977,6 @@ esw_check_vport_match_metadata_supported if (!MLX5_CAP_ESW_FLOWTABLE(esw->dev, flow_source)) return false; - if (mlx5_core_is_ecpf_esw_manager(esw->dev) || - mlx5_ecpf_vport_exists(esw->dev)) - return false; - return true; }