Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3055277rwe; Mon, 29 Aug 2022 05:13:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xGQXG9zDhaHwtOWXbxSLFm30fzAZ5JAnUhs8Dn+PaOCFTGx4JsAZfnVyFOMSNIVPC1xs3 X-Received: by 2002:a17:90b:388e:b0:1f5:40d4:828d with SMTP id mu14-20020a17090b388e00b001f540d4828dmr18526834pjb.31.1661775221994; Mon, 29 Aug 2022 05:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775221; cv=none; d=google.com; s=arc-20160816; b=Hq6Sd3j2MnBucuSPpwhaTzDkl/18dRdAt3f2mwg6anY/mrhKJhQQIQ+qPtG3okbtlx 7sPE4BNe2N9bKh8JzGvnrsE8gUNLHrPJm0emA8EdHYnJ+eIhGXE6htlqVaeHqWXpBdSx xAxGMfZYEpxEI5i0srRMVRhBYIMdpvxgWJzEIJAnk0Lwoc0LVMHAXzte1ZvychjXDfLG dS6GqoCebdy4DdxJAbOIFNwhjRVM/i3SZhlrpVBzP0UXOQUTgqLRVyJdIMp0hOtfgSnG 1/VhbhKEUq/iN4TLaAl15WbWBz/Mt+4NUvutqaGcEbF7+kpsNRxWXLSZxDQ8Z7PnvpSe IPSQ== 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=Vs+NjF/tAYOEKkvQsJ+LzLIXPDm0dr3jJDIBndMpizw=; b=vm8zARcqAcZtH83oIZSVWdjXvXPEqcyJSR8spE3TJQs/ad2nVHEmwRACs66BjyBI/S Ls4/KgF9A+7DYHb5rWbUCFb6sgvMVIH2hQpH6NfDDQTrba+pAvm2hlZR/YMtuU8GulCM oJnkhOG2trzN0Xr3PKrOcfigpFidW57oMdo3zKxcJoo34ftgThenzxLJ44unWrvPoygM ZIB/9M1SP/1dMCW3OkOE0Ym0AfJd8+6YxgiLS4Uc7Dnu7sZzCCQ12SkK6uNt7G1n+bmo ClZmI18pfUomzlPFf0J1fbvOZWUjwLsI25fj37juLdMgk1jpQqM9q0DcF7f9GXKDKu0R F7ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Awj+hfU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm8-20020a17090b3ec800b001fad988c938si10394430pjb.140.2022.08.29.05.13.29; Mon, 29 Aug 2022 05:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Awj+hfU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232767AbiH2Lgh (ORCPT + 99 others); Mon, 29 Aug 2022 07:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbiH2Lfz (ORCPT ); Mon, 29 Aug 2022 07:35:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6210163F1E; Mon, 29 Aug 2022 04:20:21 -0700 (PDT) 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 A12EBB80F2B; Mon, 29 Aug 2022 11:10:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0644EC433D6; Mon, 29 Aug 2022 11:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771421; bh=7VKZhXCGzisaoxFdEPdF86+73ELz64gAFPvK7/uHejM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Awj+hfU4MhB3jzcixXh7z2pBf/hcyvQRHMbnrdjLmaW/tMuOdVJ6/2SatLEWgmVcn d8sFBleXsjbODB5G24avz+4mnHpUXuoOagtQxYnyxeR+P0M7pR2V9AhLO8/ZEV55fW rOaSZSydVudM61NvXlsoEE+JMqh7aPpVzT66be1Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vlad Buslov , Roi Dayan , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.19 029/158] net/mlx5e: Properly disable vlan strip on non-UL reps Date: Mon, 29 Aug 2022 12:57:59 +0200 Message-Id: <20220829105810.003844350@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105808.828227973@linuxfoundation.org> References: <20220829105808.828227973@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Vlad Buslov [ Upstream commit f37044fd759b6bc40b6398a978e0b1acdf717372 ] When querying mlx5 non-uplink representors capabilities with ethtool rx-vlan-offload is marked as "off [fixed]". However, it is actually always enabled because mlx5e_params->vlan_strip_disable is 0 by default when initializing struct mlx5e_params instance. Fix the issue by explicitly setting the vlan_strip_disable to 'true' for non-uplink representors. Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors") Signed-off-by: Vlad Buslov Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index f797fd97d305b..7da3dc6261929 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -662,6 +662,8 @@ static void mlx5e_build_rep_params(struct net_device *netdev) params->mqprio.num_tc = 1; params->tunneled_offload_en = false; + if (rep->vport != MLX5_VPORT_UPLINK) + params->vlan_strip_disable = true; mlx5_query_min_inline(mdev, ¶ms->tx_min_inline_mode); } -- 2.35.1