Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2496164imn; Tue, 2 Aug 2022 05:15:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uhts8FeNxYtUOa+gWi2yR7BBHc+TxxnCCLSh4NlAuIbIKrTwPm09+XEw91vFooaJlwkjnO X-Received: by 2002:a05:6402:3785:b0:435:5d0e:2a2e with SMTP id et5-20020a056402378500b004355d0e2a2emr21091623edb.307.1659442553379; Tue, 02 Aug 2022 05:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659442553; cv=none; d=google.com; s=arc-20160816; b=L9WHGQEtCJTEjAHaz4D2BQzJCSqSxwjdgOhjVjN/NZIgRV7hESf9lDtXP9ywPWeHYG UIRlRpueFp8po2s/TMAAXjuJQyAa9fpMm9++Gqlqt/tnEIMF7ABfos4LObhWDv8EmTTO aVLH1xyCAh3VcFnQZSlijuFPEd0wApjvGgbm+DOn+BuP14z7x19Ct2EFYTtxZx3HdVX3 E0CWC5nS8lvZl6gTpyh6+BnknC6kLMIk1HUr7JjUCFs5eQGyjamGRu4hwnNsWT3AD9f6 rEVa9mRV9jA2rDwcWvA6lEPNbVAoDee5JeImCaHCu6i/Q4xHydDSKSRqaSeT0ksuTyn8 95bQ== 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=wxvH2rGlHe9grf+ppG57EJkuecYG69EpgZCujpsNrM0=; b=v2S9Dze/sW7/hUWSuUP6Gtr/I1RABAn7+Jo/7IDdwAdFP9f8KDnqIPVOH+bQ411+fK 2UrueVwtdtjwoRhJj7a0DCpXJz+zurBmtDKUmkZDRfdznxIlntaCk0RNgzPg24o6YjaM Y1PsdF9eToZ5d8YO2o6dFtMbax+2ch4nEOrZMlme2vsU9BFbQqHG+0ADK2VKhhLwWMhg YwXgC16obZZ2zT2IC2cz597KtxPljfCvy2GQluj8Wh+ZIhvgFO3w5TYpL3W6M6OWnlvr 4S2PWbN4RkN7NOTlJyfbahEXlufyi+/HE73oDKy4x67X+ViBIG4SCzNCNx0cb80pCZ73 LCPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@westermo.com header.s=12052020 header.b=K2aIatVL; 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 hg7-20020a1709072cc700b007309e77858esi2369460ejc.575.2022.08.02.05.15.27; Tue, 02 Aug 2022 05:15:53 -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=K2aIatVL; 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 S236767AbiHBMM4 (ORCPT + 99 others); Tue, 2 Aug 2022 08:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233690AbiHBMMz (ORCPT ); Tue, 2 Aug 2022 08:12:55 -0400 Received: from mx07-0057a101.pphosted.com (mx07-0057a101.pphosted.com [205.220.184.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C740F4D80D; Tue, 2 Aug 2022 05:12:53 -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 2726lw05021700; Tue, 2 Aug 2022 14:09:58 +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=wxvH2rGlHe9grf+ppG57EJkuecYG69EpgZCujpsNrM0=; b=K2aIatVLYn5pRal+0eqIRBU98VNLirjjAJMTKMdiI+idwtymOkcrVSMg2Z/WS6iggqr5 O6f+vcS0aoRJlUw0UYTIEAJaq16e1aYb/T271QyomFp7usQdyJa8eb1QMrwXC/6NvOVw CGrr+Q0OyYtZxjp/z8cSjUYAkdY6md7CQFG3t4RPzvJj+N61RqzPpyaJneyNiaVJ9nCb kdJaqd5i+5LxDvc7lwwfHE3gbHWAF7YmYIo0EZAYTyWo0YWPPLjFyyrkTDLH9PVotJZq Ucin18UAJZnWN7i/dxUSH1Fi48N8Xz8+0xzdR8UrCBZ6nwlA9Nb6jqX1gzUhOP5xExpm 6A== Received: from mail.beijerelectronics.com ([195.67.87.131]) by mx07-0057a101.pphosted.com (PPS) with ESMTPS id 3hms0c2wbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 Aug 2022 14:09:58 +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:56 +0200 From: Matthias May To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Matthias May Subject: [PATCH v2 net 2/4] vxlan: do not use RT_TOS for IPv6 flowlabel Date: Tue, 2 Aug 2022 14:09:33 +0200 Message-ID: <20220802120935.1363001-3-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: sZJ9aE2wcF4H939_dPzX9i35OYBxkBVJ X-Proofpoint-ORIG-GUID: sZJ9aE2wcF4H939_dPzX9i35OYBxkBVJ 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: 1400615d64cf ("vxlan: allow setting ipv6 traffic class") Signed-off-by: Matthias May --- v1 -> v2: - Fix spacing of "Fixes" tag. - Add missing CCs --- drivers/net/vxlan/vxlan_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c index 265d4a0245e7..797585fbb004 100644 --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -2320,7 +2320,7 @@ static struct dst_entry *vxlan6_get_route(struct vxlan_dev *vxlan, fl6.flowi6_oif = oif; fl6.daddr = *daddr; fl6.saddr = *saddr; - fl6.flowlabel = ip6_make_flowinfo(RT_TOS(tos), label); + fl6.flowlabel = ip6_make_flowinfo(tos, label); fl6.flowi6_mark = skb->mark; fl6.flowi6_proto = IPPROTO_UDP; fl6.fl6_dport = dport; -- 2.35.1