Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2497916imn; Tue, 2 Aug 2022 05:19:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Mmf8XM4K3cLYxvR9oX1NueYq9jVpWvOVTwa6JihJ91D9p91+wRP1vWOOZDzEOKkQnnFAp X-Received: by 2002:a17:906:847a:b0:730:9a59:3958 with SMTP id hx26-20020a170906847a00b007309a593958mr4063561ejc.62.1659442790621; Tue, 02 Aug 2022 05:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659442790; cv=none; d=google.com; s=arc-20160816; b=0KgENOP8dxN5q20fg3Z7cuptoGa34TjLcG11cUIZCPz3Tx3D3aiMPhwBOWZjVNLFg8 uouPOIJ5W5n2R8V577eCaUUxay00mjmqXXlauez+tsECldFfSlRb3lAH8uBjTGU1V7P8 vL+vME5g7Q2peWbxnM4fEimRISTkCW0tsKiVRGkF5b2PEf/LCaQ34F2cu5eV0XXiFgE7 5s18MS8+qrtnvkIeVSrTeZcE0xKb0WG2zZePgxwWWeCvY6FKKwUbGQCIZ1rOBEveE9G5 MTc45E6aQw994Dy/IL2WgNz7TMqVgul4rEHhbFrYOgYkFBqbwE8NOT8iZAk2Cmx4f4HJ lPkw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lQXlqj1NWbH2MVmZ/d/fuFUKt6a6RaeY7WBG4ZTaecA=; b=ChH+vYrYCj0RuRHmpA30kjbrplKVdCi7ncFxI89kKzesvJnDCog5BxSTOQx+Zd3FKa I3/cgI5dlX8khlOllYq+Kd0et7sBFog+nXAAcLdGEjROa1044snmNLqBl0sce24wJ/4Z 1XWhwvPbPQQeCiJNBTXs8KbBg5VtEwj6PQuTT1YK+w6vjunqJZrgbDHsG8H3HhsA8ZZn ApAFvcJqNerBWKScXkeZOzD4CtgFPuRFe51a3dFp0VCt1KrrzVqiHYWYCBtwfGw/ugpW qiJC4HyXFLYJTopzun0LCRjzo3DMmK2MJaqnsn/jboNWit9/UcHQX+C20UmMnzZunmvU i7XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@westermo.com header.s=12052020 header.b="ia/QEbow"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=westermo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a056402431000b0043dd6669530si3305790edc.613.2022.08.02.05.19.23; Tue, 02 Aug 2022 05:19:50 -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=@westermo.com header.s=12052020 header.b="ia/QEbow"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=westermo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236877AbiHBMNT (ORCPT + 99 others); Tue, 2 Aug 2022 08:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236853AbiHBMNO (ORCPT ); Tue, 2 Aug 2022 08:13:14 -0400 Received: from mx07-0057a101.pphosted.com (mx07-0057a101.pphosted.com [205.220.184.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 710E54F6AD; Tue, 2 Aug 2022 05:13:00 -0700 (PDT) Received: from pps.filterd (m0214197.ppops.net [127.0.0.1]) by mx07-0057a101.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 272AB47h006184; Tue, 2 Aug 2022 14:10:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=westermo.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=12052020; bh=lQXlqj1NWbH2MVmZ/d/fuFUKt6a6RaeY7WBG4ZTaecA=; b=ia/QEbow+YOcD33sQ7csn6tUXSl96usHyzqhc58nfK4VwJ0rcRuPpjSWpEXD2CX8rIjS ll8A57nTPXusHb7qmqbGhkcYOvy2gAJn+mmevU/fU+9Taoux3q5tEe6Kl/tF2mmYhVX1 OYa+bM5JzZN0Ve5Tzh52Ue8h55sNVxnObOL1gIryQ0YKWgvGVvHqTugJpd2DP6Nj/wm9 gPW27kAmVot0TkfKDeGD/p8ntsVoetlvSy1Vi4nc+7jIB8IxMKc5Q05VKarCpBMIn3Eo x6+dz5ggnNxBMmNld1MHbfcDm/rm6Qq9IT+gIrlNCN6YLlwLxJdV7FJ7l0VyLhtzKoXw 7Q== Received: from mail.beijerelectronics.com ([195.67.87.131]) by mx07-0057a101.pphosted.com (PPS) with ESMTPS id 3hms0c2wbx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 Aug 2022 14:10:01 +0200 Received: from Orpheus.westermo.com (172.29.101.13) by EX01GLOBAL.beijerelectronics.com (10.101.10.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.2375.17; Tue, 2 Aug 2022 14:09:58 +0200 From: Matthias May To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Matthias May Subject: [PATCH v2 net 3/4] mlx5: do not use RT_TOS for IPv6 flowlabel Date: Tue, 2 Aug 2022 14:09:34 +0200 Message-ID: <20220802120935.1363001-4-matthias.may@westermo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220802120935.1363001-1-matthias.may@westermo.com> References: <20220802120935.1363001-1-matthias.may@westermo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.29.101.13] X-ClientProxiedBy: wsevst-s0023.westermo.com (192.168.130.120) To EX01GLOBAL.beijerelectronics.com (10.101.10.25) X-Proofpoint-GUID: DiTdWKqntxNfwqcrbR91I3nv8C3kYphB X-Proofpoint-ORIG-GUID: DiTdWKqntxNfwqcrbR91I3nv8C3kYphB X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 According to Guillaume Nault RT_TOS should never be used for IPv6. Fixes: ce99f6b97fcd ("net/mlx5e: Support SRIOV TC encapsulation offloads for IPv6 tunnels") Signed-off-by: Matthias May --- v1 -> v2: - Fix spacing of "Fixes" tag. - Add missing CCs --- drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c index d87bbb0be7c8..e6f64d890fb3 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c @@ -506,7 +506,7 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, int err; attr.ttl = tun_key->ttl; - attr.fl.fl6.flowlabel = ip6_make_flowinfo(RT_TOS(tun_key->tos), tun_key->label); + attr.fl.fl6.flowlabel = ip6_make_flowinfo(tun_key->tos, tun_key->label); attr.fl.fl6.daddr = tun_key->u.ipv6.dst; attr.fl.fl6.saddr = tun_key->u.ipv6.src; @@ -620,7 +620,7 @@ int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv, attr.ttl = tun_key->ttl; - attr.fl.fl6.flowlabel = ip6_make_flowinfo(RT_TOS(tun_key->tos), tun_key->label); + attr.fl.fl6.flowlabel = ip6_make_flowinfo(tun_key->tos, tun_key->label); attr.fl.fl6.daddr = tun_key->u.ipv6.dst; attr.fl.fl6.saddr = tun_key->u.ipv6.src; -- 2.35.1