Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3115624pxm; Mon, 28 Feb 2022 12:20:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+9iNGsiSL5B0FjYp5If2SQcRHwkecrQ++t9RCWM3Ae82zL+U4nD/htYq1TF81HnBR63wU X-Received: by 2002:a17:902:b208:b0:14f:14e8:1e49 with SMTP id t8-20020a170902b20800b0014f14e81e49mr21638503plr.35.1646079639710; Mon, 28 Feb 2022 12:20:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646079639; cv=none; d=google.com; s=arc-20160816; b=VS0wt+iAjFtYnD1L+gt7cyxnpAEm1KdFO7twxuRvKCPxFjbpdfjrQSdoMqOvALJEfv YfxzyimQuU65ZMughzUXhFiq12W2FfkanXehWQ9y4FI9aWu3E1cpaWp86w3OVv6Gyo7B DfhtE6Z3giseBdzj2AhKkaMsKH5QnDIypgl+evdRuKmtvEee90pePymFXpfhDgvV99T4 01cOA8Ajrw7OuAlxO3hpdXRju/s0qKRTq4UfdhjXtli4Y8a6pBPmrAsQxp1B9lh8dlQO iPOop7KOcV1lSy6mSMLiHw4ddw9HHbjtkqaS5j4l7TR67Iz8upkZpmDazIRrY0xDZI81 4iIA== 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=p5sMm7rZZut8foJx3ZqvjsnWzjKpmUcbBvYLQ06FAYg=; b=xYTA0ZfoOS7Et7eWDIjbp5hhfd/N8pXyG2JDY8hxxiYlvkNOQSCY2eOX9YF3DMuA7g Y/fiTOJpze4Ha9icZQNcqc6bDXDBxtPzGr0hWKhjWzszGurkSe4OuobM5U3Bsr/ckuvQ /KHguKYIp7iQdybZrDXoIwqlhGQddUIpNaZfLJU9j/UOzUoCp3zuBguvLWZRlRBAQtAK DC8trZsz8DCHK0toRX/ZUoQbsT4yl+I6ZmOK0Y0x530WlPsQKpWvUOlOSHlxc7DukORJ FOphNfCPj7undbqMqqhOnS+sJZe7zNrgoLUBbei9vkI6gwVnzVcAthczonaEWxKU3rug Z3xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tiVxsMHz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id y16-20020a634950000000b0036c3c3eeb1bsi10296504pgk.722.2022.02.28.12.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:20:39 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tiVxsMHz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 E802DB91ED; Mon, 28 Feb 2022 11:40:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240310AbiB1SIf (ORCPT + 99 others); Mon, 28 Feb 2022 13:08:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240144AbiB1SDB (ORCPT ); Mon, 28 Feb 2022 13:03:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D092E54685; Mon, 28 Feb 2022 09:46:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9C334B81187; Mon, 28 Feb 2022 17:46:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E97A2C340E7; Mon, 28 Feb 2022 17:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646070396; bh=4SDR2zPe+STyu+dK5B43Nh1E+LcW275FuOXqcL8NV6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tiVxsMHzqnlayHZpAWKkpBG5y9O8F2gESyIkqR8UGDKZgyDmXm5ZuBc/yzSqOjdkT spJM+Jdx05NdfRPn9KOeOsAVgHkt8l4MICuMeod+N1w2cWuXBk5ShLjiPv22EU09by /9JcnWWx3xDxQEbNTTJ0AcgGZORlh3+TbbBiRKfc= 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.16 092/164] net/mlx5: Fix wrong limitation of metadata match on ecpf Date: Mon, 28 Feb 2022 18:24:14 +0100 Message-Id: <20220228172408.161564826@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172359.567256961@linuxfoundation.org> References: <20220228172359.567256961@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 @@ -2838,10 +2838,6 @@ bool mlx5_esw_vport_match_metadata_suppo 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; }