Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3318816rwa; Tue, 23 Aug 2022 02:44:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6x1j/BaSudIcZYyEJaIC/iEg3q4PR+xAz2nzsGWpdp6VJFR5NzIY04AoW0mKUqv+FaRGxw X-Received: by 2002:a17:907:3da4:b0:73c:d2f4:a633 with SMTP id he36-20020a1709073da400b0073cd2f4a633mr13634654ejc.446.1661247848214; Tue, 23 Aug 2022 02:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661247848; cv=none; d=google.com; s=arc-20160816; b=pylRfBYGthAaqCDN0IehAZmnAK4NX0AXsERWmBoBGdn0dtMv0lUuop4baQ5BfU+SDn cNobHZq1JMXdyH7Uk2aBX/pairuu8k/rkZxF/N3a8amLoW4KqYoGq7mTvDWQg7YsrZNq CJsADYNnkDseij1UhpZeONn0C1LktRTuEbOK4dD1d526xZrwYXR+6PSxKoUkDYtnAQwt WMS6G1RpxV3mAGhEFCemOwPoXVc+9+eLTNrweu8dpyesi6IQUBS43ifhCaSuVnz/7ieu B+k1x22Rk3h0VXquHQ8QDKeRYHPH4MtnKUhmE9cnJ163wAapO035dMPM8hDmwk/2GlRR bWDA== 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=YiybS34qcUSIQojQkOWKQqMwqRCw2SZmVcImV5TRahE=; b=PRjSDpRLQMI/BDeyC43BvvyH71fRMeragqmLogS8sNcqjNYdoTA8eps/5KWczr08u6 AEJIMaIVG1XgOeXoDk8pvHQ0TMsGVDN+u+yXH1xNLEeG1Gkg5RnqE1KewfBuBSxcEva6 gF1zhN3SaWypogZ/8vmAh5JSQl89Jr5T1eX30EhFfU/gCD1Y9NSaJcGKKaeMf+VYh4Ad NVDIPgeiM6NgxwmLsUH02BuUj80Pc3n4KhGzaQjaoaOFLfjqwTHAgprpHjAXJiF0TWOM X9MUINSGBvVQ9vZZDmzckxud/ddvovvHnbHVykXBBNXM+zFYyF369vKm4ocXiYUJ7req OqbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A4CzQ6aY; 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 hv13-20020a17090760cd00b0073c194e99f6si13726640ejc.779.2022.08.23.02.43.42; Tue, 23 Aug 2022 02:44:08 -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=A4CzQ6aY; 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 S243692AbiHWIcp (ORCPT + 99 others); Tue, 23 Aug 2022 04:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243751AbiHWI3g (ORCPT ); Tue, 23 Aug 2022 04:29:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F050674366; Tue, 23 Aug 2022 01:15:29 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2A3A6B81C3E; Tue, 23 Aug 2022 08:14:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA41C433D7; Tue, 23 Aug 2022 08:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242471; bh=Lw6+OHZALDDUo+C/EBstKYdK92NMO1shHUb3tm6rKQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A4CzQ6aYhBLU3jR2bzo6e7cojVeSF5TvoeqEGNtZxT2kPKigp0lr31SDlm6e1xte0 4DLRyX8bnME+VPe1BIf7gr+vo1vtxv7GiGz1UTHMQ8vAgXXkgQFGjhHIvbCOA5ulqv D3XmGqFOk2qx+UZejZxr2T+baEzac/t5w4l5Zn6Q= 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 5.19 120/365] geneve: do not use RT_TOS for IPv6 flowlabel Date: Tue, 23 Aug 2022 10:00:21 +0200 Message-Id: <20220823080123.212222973@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@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 @@ -876,8 +876,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);