Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2496366imn; Tue, 2 Aug 2022 05:16:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+jQOO2eNlbKwHgXNlLeoAefSE48PZC3CvXsqy1TJG29U2v+dgfgIyX/RGk0FiKD/f7Tf8 X-Received: by 2002:a17:907:7f21:b0:730:996d:c5fe with SMTP id qf33-20020a1709077f2100b00730996dc5femr4340892ejc.8.1659442581234; Tue, 02 Aug 2022 05:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659442581; cv=none; d=google.com; s=arc-20160816; b=GLSNot+FQ/7GfhiwBC1ngJsdcmQtGVCqKoUJd2+o5vilW1/dSo51ZriKwE3n8pLOG/ 9Pj+y2diiuFJOW7BeZIpDBvS2+sMxTl+B9fc8TWUtBY430xxdUWh7XLwh1v5X+POJiYK Z5j1/9lSavpD8zLUCfhSzsg8SU/+pOTcJRYRWwOZ1mcU9PmDr9vrkKAnCjCf3DWUsJXc CO6z7UrOK5K7OoTS1Jn6ciXf8U237YCUO70bm+Ss4+vSwm3llHb215pSfZao1c4NuERP X4q1UhcuglKZi0cmz8l+flPSgLEaXGo0ZfGwfmmWlaLxxl2AXVnlxaN6+2+W9xsthMWx X2aQ== 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=SIiCmJXt9v+lY7Nu2rajGi53+FPokSY1UdV8paIPp1w=; b=m8AqkzmAF1F2/ngmvJzzx3USQLDcpYQcFq5HM345p1DtVluQR+xOQa8R7LRrAy6iZv cLwqJqg7LN5uPmx1mFlrJBm1LnXiMzt+G4C5KbrMWEuLEt0/3K8AYCOd66Jy9rDFjeku F+Dy8A15AynRxDfNh22/EB+Vcrv2FXD3xuc9PhjEIxKvKv/Yo80xq/A8f9BpncpRBSwT yCim1/jhAPtGX9vAcAo2Kd0Ej8DvFGUeIN2sFXfRhjNleCcwk73eGtnnjEconFByiDqb Zh91lzy+qO/QVLxkLKe/lm4Ft7kX4hLBlU/1xFoCnLS61rLfNLfrx+bkpqmIFXwt8q8v v1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@westermo.com header.s=12052020 header.b="QcIpp/EO"; 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 e1-20020a50a681000000b0043bd872f30csi12735237edc.560.2022.08.02.05.15.56; Tue, 02 Aug 2022 05:16:21 -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="QcIpp/EO"; 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 S235854AbiHBMNH (ORCPT + 99 others); Tue, 2 Aug 2022 08:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233690AbiHBMM5 (ORCPT ); Tue, 2 Aug 2022 08:12:57 -0400 Received: from mx07-0057a101.pphosted.com (mx07-0057a101.pphosted.com [205.220.184.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC252871E; Tue, 2 Aug 2022 05:12:56 -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 272AlwVo013562; Tue, 2 Aug 2022 14:09:55 +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=SIiCmJXt9v+lY7Nu2rajGi53+FPokSY1UdV8paIPp1w=; b=QcIpp/EOeZ5NNaVIpOMti3p/BCFb4iG2FDeHECjVDodf7ehwboHV+Z24WO5wybVwdD6T c07bpJSi4fmELH+8oAqtU+8q+qs7EK1LCh0OHR4962N12Jbe5TOgoyhZWHDUUFaCOgpy lOdEYWPxHSsq4sd9e99IyS28V2d2H1Pc4asqdmQApSYz5zURtIxzmIydKTOHYseRuWxv x26tEw202BQ0Xb1/6NZDMxWRDdLm6m3ngLVkkNBBDcli+iEAHmPpWxnwzOfXf048RngV PrOwixH9r9/EYgkR7vIbilCx5/ZQMXJmjqMAxS/ZkaWp+DklaqaAfhemZBC3bGthEz3j yw== Received: from mail.beijerelectronics.com ([195.67.87.131]) by mx07-0057a101.pphosted.com (PPS) with ESMTPS id 3hms0c2wbu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 Aug 2022 14:09:55 +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:53 +0200 From: Matthias May To: CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Matthias May Subject: [PATCH v2 net 1/4] geneve: do not use RT_TOS for IPv6 flowlabel Date: Tue, 2 Aug 2022 14:09:32 +0200 Message-ID: <20220802120935.1363001-2-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: TXRr773tnxTrfU_syFXSbJceHVQAeTpn X-Proofpoint-ORIG-GUID: TXRr773tnxTrfU_syFXSbJceHVQAeTpn 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: 3a56f86f1be6a ("geneve: handle ipv6 priority like ipv4 tos") Signed-off-by: Matthias May --- v1 -> v2: - Fix spacing of "Fixes" tag. - Add missing CCs --- drivers/net/geneve.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 4c380c06f178..e1a4480e6f17 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -877,8 +877,7 @@ static struct dst_entry *geneve_get_v6_dst(struct sk_buff *skb, use_cache = false; } - fl6->flowlabel = ip6_make_flowinfo(RT_TOS(prio), - info->key.label); + fl6->flowlabel = ip6_make_flowinfo(prio, info->key.label); dst_cache = (struct dst_cache *)&info->dst_cache; if (use_cache) { dst = dst_cache_get_ip6(dst_cache, &fl6->saddr); -- 2.35.1