From patchwork Tue Aug 2 11:13:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias May X-Patchwork-Id: 12934560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5420BC19F2B for ; Tue, 2 Aug 2022 11:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235854AbiHBLq0 (ORCPT ); Tue, 2 Aug 2022 07:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236557AbiHBLqZ (ORCPT ); Tue, 2 Aug 2022 07:46:25 -0400 Received: from mx07-0057a101.pphosted.com (mx07-0057a101.pphosted.com [205.220.184.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD08F1C100; Tue, 2 Aug 2022 04:46:23 -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 27275Q7L026303; Tue, 2 Aug 2022 13:13:44 +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=s0sAH8Va4oVwM9bds8xjXKdGoYvKULeCnqytXxV4qlc=; b=2C9dKWqOfJyjZErAq5w2BIdsx6gbaRvgJ1S6g9qaYiN+C0qXm3O6ik1RtyQynJEF+2+T QTQMsqjAzGVSGp0dEaCoSQKtI4MNJdT93PsXMgqecDByUL4IXJge7MidjM8GPPehEqE2 CBQYwOEBv33BXffQxIsOWy4HAT3U6WblyY+NxzSh/DCkNUvjoI9gXzrn1J4+v7eOKwh8 YnIaJ8MBQ32nKgVU+ZJQJ3bXro9huFWxILyacJV2iYoctlxRmK2ukcLUPDRT2NnWAUSh r1qMowoYCbIA+zflmU5tmR3kvrgGj9Ylzg7j9uIwJ6uXlf/CLkn6+jCRzAhDNzGOEswN +A== Received: from mail.beijerelectronics.com ([195.67.87.131]) by mx07-0057a101.pphosted.com (PPS) with ESMTPS id 3hms0c2v0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 Aug 2022 13:13:44 +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 13:13:42 +0200 From: Matthias May To: CC: , , , , , , , , , , , , , , , , , , , , , , Matthias May Subject: [PATCH net 4/4] ipv6: do not use RT_TOS for IPv6 flowlabel Date: Tue, 2 Aug 2022 13:13:08 +0200 Message-ID: <20220802111308.1359887-5-matthias.may@westermo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220802111308.1359887-1-matthias.may@westermo.com> References: <20220802111308.1359887-1-matthias.may@westermo.com> MIME-Version: 1.0 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: FkHXf2mzz-Ak5yeVUdjlC1xlaQTArItR X-Proofpoint-ORIG-GUID: FkHXf2mzz-Ak5yeVUdjlC1xlaQTArItR Precedence: bulk List-ID: X-Mailing-List: linux-rdma@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 --- 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);