Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2513548imn; Tue, 2 Aug 2022 05:57:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5sO0Ur1tcmzXzXE3mxY2hs6gJpSs80crjSkD63GG2Bp+6dSSqH+Dwuc9aZmJAkU+9sIpDD X-Received: by 2002:a17:90a:4e05:b0:1ec:8de4:1dd5 with SMTP id n5-20020a17090a4e0500b001ec8de41dd5mr24000166pjh.242.1659445021543; Tue, 02 Aug 2022 05:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659445021; cv=none; d=google.com; s=arc-20160816; b=WqnHvkOpOonplTh9UhfY3LydR8UkqhtI/z4i8pXGd9A32+1fHjl9LO4Ccgr+ZxTTuZ lbCnxs1CGuCyhbQxuIqO9bJI2acDR++HXjGRB/m5ndIQ1ljLvCAV1T1Cw6qh8ooPsFyU zzZR5p9JN/PlXiEMpi8kRfUZBaabXWogMfVATc9KLfqWFTPcbB/l4ReB03DSOT+vXOWS Sx9t2oJ+7jXppzyb7V2aiST9ckagAJ+se5SliqsXJkfFEynZPjvS+Bz8JmwgRjqdAgsy BXEWR1uDJ0RXHuaRPpSNZyuBAadySL4nguEJzbAIBVK9JXASopJeqeUQjqPi2jLbkJQ+ WhIg== 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=7Dt46XnYgf28PDkRim97Pp78Rq0luk57iTdbu5nsFDk=; b=RI/VgdjbJfTDZHKLx9pSEgpIVLsknrTmKFb2s2F6AxelHgs5RUD7+qFgilW00+akuX DF0uVfoQxP6oGaDtFWFZx5OhFtCKEnzkb5u5mI4Z/11UucKbdgfDW6GgbdptqEwG+MGX dxKtUuKX+//hB4DjsICu8Mh59bMbkP59H04p0wjOGJ0WZSaTwgopOfpGTX3jIXi9SFeL amoQnHDZySS75PAsejXSLNau/OLfoRSydJDPMHbWrU02aXBP48dU9hHU22g5YG1rYjWx JOPmLfolylj/DtyG5GtXcl1yG8VkINPWbJ1x+ZociS9CWvHIop94yxhLYyU02TVJiT1A Z0NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@westermo.com header.s=12052020 header.b="5A5ZHa/0"; 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 y36-20020a631824000000b00415ed04e2f3si15565052pgl.18.2022.08.02.05.56.47; Tue, 02 Aug 2022 05:57:01 -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="5A5ZHa/0"; 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 S236889AbiHBMNX (ORCPT + 99 others); Tue, 2 Aug 2022 08:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236865AbiHBMNO (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 F35004F648; Tue, 2 Aug 2022 05:13:01 -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 272Bru40021377; Tue, 2 Aug 2022 14:10:04 +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=7Dt46XnYgf28PDkRim97Pp78Rq0luk57iTdbu5nsFDk=; b=5A5ZHa/0fQMLtboujnDa9BvigvhJm8zM/sKzAeRSrKNB/Vh8BF9o+gJvfxedi/5ona09 BE6fPGar3b68cHForqu4ZK0KK9U5MJXrFgTbMXF9Ndr9kCmjdAU5XRVq1k+VzD38TK37 wVtRkrcBN2c1OkEo9ZB/R8wZ1xJK1Rc+E3Dy5GVlcwrqfCCAO2HUkpKKJPtVhbMF/UiZ VLon0gn0MUaJloc9NgvcJi17bz/Tb5BY40K/A+QgvlsJo1ckpOUFl4qxtIhajLpjonCH J/d1746EKf7Eav9sh+YJ4Oayr9U8pd54NjmPZ05An5wZKjV8mFPio+M0qwZL+08WntQB Jw== Received: from mail.beijerelectronics.com ([195.67.87.131]) by mx07-0057a101.pphosted.com (PPS) with ESMTPS id 3hms0c2wby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 Aug 2022 14:10:04 +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:10:01 +0200 From: Matthias May To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Matthias May Subject: [PATCH v2 net 4/4] ipv6: do not use RT_TOS for IPv6 flowlabel Date: Tue, 2 Aug 2022 14:09:35 +0200 Message-ID: <20220802120935.1363001-5-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: ZoawDdE9j41KGZHES-cdGopeQksgu0vj X-Proofpoint-ORIG-GUID: ZoawDdE9j41KGZHES-cdGopeQksgu0vj 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: 571912c69f0e ("net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.") Signed-off-by: Matthias May --- v1 -> v2: - Fix spacing of "Fixes" tag. - Add missing CCs --- net/ipv6/ip6_output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 77e3f5970ce4..ec62f472aa1c 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1311,8 +1311,7 @@ struct dst_entry *ip6_dst_lookup_tunnel(struct sk_buff *skb, fl6.daddr = info->key.u.ipv6.dst; fl6.saddr = info->key.u.ipv6.src; prio = info->key.tos; - fl6.flowlabel = ip6_make_flowinfo(RT_TOS(prio), - info->key.label); + fl6.flowlabel = ip6_make_flowinfo(prio, info->key.label); dst = ipv6_stub->ipv6_dst_lookup_flow(net, sock->sk, &fl6, NULL); -- 2.35.1