Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3075166rwe; Mon, 29 Aug 2022 05:32:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Cn6OKc7edq8xWQzjdkKGktsaBAsolTdzYSLAqCOUNinrcjS7zPA0jMO4a3BVWYv1X6XpQ X-Received: by 2002:a17:90a:e386:b0:1fd:125:fa24 with SMTP id b6-20020a17090ae38600b001fd0125fa24mr17939958pjz.197.1661776325387; Mon, 29 Aug 2022 05:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661776325; cv=none; d=google.com; s=arc-20160816; b=jEHmbBxQpC7TdADZjz6ce9ecRBFVYt3Tq+t4F8M3ogI1bjprmOoZTVNKAK9ONwdoB0 V+bQ12x7Vs/DThO1Ec9RShHoiueXnOMe1aPa83U73wDOaRDp9ZT/k6bh2gBfBb/SZ4TP HslqEBOqTH8f/OsbZiJ0NJdyv2/AU5ybDpIVD/mjZy2+rsynTFsAc04WfHWy6G1GyHEP v8+M8iSq0TV3RxswJqFIwF8FX/I0LVhqBmdObUTEtDsA88tQVIiRtL6ifmc69RUpdEhy 6KhqdNostqhSTPCaD7FkYS+7gwkUTom3TxHiCJJBVMcuP7wg7qboTQ754g07e5lXr6Vs 76/Q== 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=OaIrAY7JruGbkL345/IKmZpUksRIfSwruAj1Nyn14rI=; b=tRRz265GOpCYN4ORFX86uY5I1zzx+liSjWfw8rpvRzpI8gvsNMcT5ppZVV+yfVIGhw rPVAFuZyoPunJSg6pMZkwFqWsFNBRYWq7uXO6CcrP1FqjNxTgebBefemCAoOPx3GpVll vgUL+gtReIGl+LxsBKKcdmgynnOfVMRDU//b7WTnCPbQz3sWGjWxJJJcUW3T4JDmj89J DU5x1fQLOzO+zssgY/TuUAPq6N6BTQc7cbalTuyb2x9B87XfyVBUjDTer/E61wbl7/on fo0s30hdvmESY9t+EWPfpNYQPZ3qECiZhqUzVvjqpiwzkdkL0PmsGSi0kXa01I62JCQm 0c3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GPgqElJ9; 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 j187-20020a638bc4000000b0042bcf82ec38si5111614pge.374.2022.08.29.05.31.53; Mon, 29 Aug 2022 05:32:05 -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=GPgqElJ9; 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 S232711AbiH2Le6 (ORCPT + 99 others); Mon, 29 Aug 2022 07:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbiH2Ld5 (ORCPT ); Mon, 29 Aug 2022 07:33:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E334E6E2C3; Mon, 29 Aug 2022 04:19:40 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 82292611BD; Mon, 29 Aug 2022 11:06:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91541C433C1; Mon, 29 Aug 2022 11:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661771165; bh=iJrwqGLzctYkJWPWDFIJ4wnhEHS7r6NpMKdPiRKCmYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GPgqElJ9nSFtE2C7BoMYNEgJB/OS6o4CPzM6BIWPJm9QkosJW6c1pysRo2M/7Fb0F kvzR9g2j1AdF0YNnX9q/0DeEjQpchyM0LgDtJE4/Za92wNNPmtWsKrBmv86sRNK2hb pDzf3/Sx/YKEX0Sl/CV7/+KCLSQgZAOHmJmjB7hs= 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.10 25/86] net/mlx5e: Properly disable vlan strip on non-UL reps Date: Mon, 29 Aug 2022 12:58:51 +0200 Message-Id: <20220829105757.562481330@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220829105756.500128871@linuxfoundation.org> References: <20220829105756.500128871@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 304435e561170..b991f03c7e991 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -706,6 +706,8 @@ static void mlx5e_build_rep_params(struct net_device *netdev) params->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