Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3418226rwa; Tue, 23 Aug 2022 04:34:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR4mnczkyYSiA6lJ3eaXVKFphqzYvEJSC2QtX9TOGzOr/hIJ8XhljcQ6hWoWJ0ZuYdyX1M7V X-Received: by 2002:a17:906:8467:b0:73d:8873:841b with SMTP id hx7-20020a170906846700b0073d8873841bmr4925001ejc.418.1661254462902; Tue, 23 Aug 2022 04:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254462; cv=none; d=google.com; s=arc-20160816; b=w1zVlXXwEGpB/DHd4acw2v2+DRHz8h6HWPrqiAy341labDRidr+yNO7I6hcPZhekBo 5tWvhU2nMboghFJxDPLuR4odciLAgXKBQ4cYZL4PlDr/8WRBFdHdHLDWlM2/qzpIx8+r NvTdRrw/JiQmwp2p2W52Xqvmvlf2HSf5w2Gf8ICLvwKGSZqpoIfn1aO1AiP6/aqeLajQ GxtFdr4GmJdCdmOUjKQ/shdTc05jxgUMZ5surwuhdnSCpiLzA//id6/WCzveq/z+HnOb 4dq4TEDdRZlxURPMTxaWDhOuETIORkrrfYBFoglfRQ/u+PmBnDL/feRwYZ7goA1ORm+d vamA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ws/+acntgWQc5wogf65QZornSNl551dXxz//P6fm4s8=; b=N3YSdTX1ZbC09TOt63AaPtB90bNVoLGSL+9n+GxtxcperI9eXUIplKHfwRpqd8Eq/y vnPGDQOfV9z/CkpfqdvPNHdZ5UmyMZaBM7eRmVaCyzkdkjlOD0mqCyOFREt1gAzKJ3AP FaZwDq5+wSFkwJ7rprlfNC4pxTpRacomoz1ZSJB1GaGBQ7aHHO2cPxGTvRIehMdLjijq ZWoG06dbD6Wra029UcjZlPSUTerPlSBY1e0KcFwcfItl6rlPGQ7Hr9LCh1UWmE7f+2Z/ 4A8FrJwFfAvHW9EY3yWUCzRJXEsB/BBJs9SYRrmNXYRCd0Ngp+auiPbnlci6sSKk29YG Jjsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x74m5uFG; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b0072b3ccd50dasi11473302ejc.905.2022.08.23.04.33.56; Tue, 23 Aug 2022 04:34:22 -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=@linuxfoundation.org header.s=korg header.b=x74m5uFG; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348731AbiHWLDz (ORCPT + 99 others); Tue, 23 Aug 2022 07:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357217AbiHWLBn (ORCPT ); Tue, 23 Aug 2022 07:01:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F63AF4A1; Tue, 23 Aug 2022 02:14:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D95B66113E; Tue, 23 Aug 2022 09:14:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5CFAC433C1; Tue, 23 Aug 2022 09:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661246066; bh=ajC9fmuZ+CPDrrB+BCdmcpwg5awUxWuQoxY0RGRfBJw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x74m5uFGudiM/dZAwb3itbsHcgxdDeT9fPOQh5XRwnvckcQcsWoebX+sKMzMSqtV/ Y9PDRPKIh79TIXkH4mt8AXCSFvvnw/kJGJEhwyModoK+2N0ezo9GLg0AnO0nP0eFP8 ypwGub+0E5lvvrdh+FUtR9ZAAC9Ivi8LNUEVsVdY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guillaume Nault , Matthias May , Jakub Kicinski Subject: [PATCH 4.19 237/287] geneve: do not use RT_TOS for IPv6 flowlabel Date: Tue, 23 Aug 2022 10:26:46 +0200 Message-Id: <20220823080109.030375355@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Matthias May commit ca2bb69514a8bc7f83914122f0d596371352416c upstream. According to Guillaume Nault RT_TOS should never be used for IPv6. Quote: RT_TOS() is an old macro used to interprete IPv4 TOS as described in the obsolete RFC 1349. It's conceptually wrong to use it even in IPv4 code, although, given the current state of the code, most of the existing calls have no consequence. But using RT_TOS() in IPv6 code is always a bug: IPv6 never had a "TOS" field to be interpreted the RFC 1349 way. There's no historical compatibility to worry about. Fixes: 3a56f86f1be6 ("geneve: handle ipv6 priority like ipv4 tos") Acked-by: Guillaume Nault Signed-off-by: Matthias May Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/geneve.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -799,8 +799,7 @@ static struct dst_entry *geneve_get_v6_d 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);