Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp306709imn; Wed, 3 Aug 2022 04:47:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BjnUCVIQa/Jk2/HZxxO+KTh8B1uCmZQvTxFmLuj5Upp8oDtpX5fvAoSmQyRLqhDv2Skzq X-Received: by 2002:a63:80c8:0:b0:41c:62c7:abd7 with SMTP id j191-20020a6380c8000000b0041c62c7abd7mr6609435pgd.570.1659527247042; Wed, 03 Aug 2022 04:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659527247; cv=none; d=google.com; s=arc-20160816; b=JkHmFZPiiJ6clGSIKCMMSaQuNjej/5iZyg7lsLtKfyGQnXnBRFi5jRSDJPSwAZXZBD bqsZZQ7ZEPxK/6nLZBuktDmeaRnrFnxQTkm2jtrWFV2CzzPliSy2eYlY6xglt1ZSsSLb C1IIgrGRYp5+uWpnF45E8glKba3px5kTi6lXK6Qa1vpv861p3/UAMU9Qlfvk84grvL57 HM/bzotw6KxObT3xdevMmQ8hdhQp/1MmgXB+kpcL7C7zVrpt2GbsOPUzrLG3jIJm9HfZ fexxempKU+sKeezayZL+IIGsV9SfvXieeqt0OqeKHyVDjXaQ1Lh8z99hBMpgPfkf/kfA 79hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ACliQ9oJqgCoHX8Ef7C87bGSwzNCX201dby99j7oUC8=; b=qLrVe55jewrFf+Up2aaKvUU5iWXYtzKRf0hkF7N8NkQDN8kD/tItGMOPUuAKPW6P/k GptO+t3nkPL00BRUZ1D2+2npJPZV6PIygCLwMq3UKvRs5iYkBY49R29bXNzhpCoMFzSS 4EM6wt5DtniuLOo4nex+P+xJxgvRmR7i5OzifNoBBzKA0KvqwqAYTmMDWdlba8eoWuMB zBc7kTvkKDCDCS+AG7jIikHg0w43TVMi6V/yTKRe4GdwbCOJFCx84wBYC35MBpz75FDO xgEmo8lqNaTlOEQ7Q43M5/+kZ168wYYi7TUrzuSEOTmsP2PW3m+kj1YbDEmtwqKsUf9U Cy5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P1pXfb0p; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638041000000b0041bee410bbcsi3174572pgd.490.2022.08.03.04.47.12; Wed, 03 Aug 2022 04:47:27 -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=@redhat.com header.s=mimecast20190719 header.b=P1pXfb0p; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235105AbiHCLa4 (ORCPT + 99 others); Wed, 3 Aug 2022 07:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236411AbiHCLav (ORCPT ); Wed, 3 Aug 2022 07:30:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AB222C106 for ; Wed, 3 Aug 2022 04:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659526249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ACliQ9oJqgCoHX8Ef7C87bGSwzNCX201dby99j7oUC8=; b=P1pXfb0p8rGSq/Zm/1FllzqVcQkOMkXuv/JBIxh4577DovpaC80Dw3FKLrAEsnI+B3SBPt GJd3AeYQo5n++gZwiRiXRGNmYR1Pk0hqjwR85HnPQA8BDUp/ABH6ZMEp1v90N9KMOlp1yx Wqy2Qb19xlwuAoS8Azm3sFurQ4gMMFk= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-271-f4BxLEAaN1SHKPklUP7KVA-1; Wed, 03 Aug 2022 07:30:48 -0400 X-MC-Unique: f4BxLEAaN1SHKPklUP7KVA-1 Received: by mail-qv1-f70.google.com with SMTP id q1-20020a056214018100b0047464a85fc4so9729322qvr.7 for ; Wed, 03 Aug 2022 04:30:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ACliQ9oJqgCoHX8Ef7C87bGSwzNCX201dby99j7oUC8=; b=oocCZlnWhDIgNn5/CALSDUN3U0lu7n4JGooU/itnAx3Fdgadw0b2kArBIPwCE9MlQa e4zy7LBqytIWh6GlPHbY1XSwjE/pELh1kuZ1nllpJCNaK3l7sRnr4RZC3X/j1kKIppke wqETQOe/Nqg9Rqh3N99ol0ifcGh++EwQR27N9vL9aKq52nkZk25xhcQDlHsnPC2JR7Bb K7Nslj1F7eWvcgaHhvDjxEKwZDNz2JfT6UL1IZ7VT44/GPOopEwsEw1sgH8Ffj3kzPGH bABehVpHQgS5tV1LMcMDwi6qEoJAlA1yoUTs4ycYpf2KwIsPgcm6ADVP4yYb/sSBKQb7 CHMw== X-Gm-Message-State: AJIora9Rc82S8K6Vqz8QLyhRMsqIuH9NjWnFuljjple/0RtI8ANygosL Sxi8yqqLMFR219FK92QjF9CFUqHOcTQEL71uPVP0W3iqT/+o8etEqQO8yAr1k0g/oiHNURqRFz3 NinwkYqaTwx7UIKLKx3V8dyYC X-Received: by 2002:ac8:59d5:0:b0:31f:dde:fca8 with SMTP id f21-20020ac859d5000000b0031f0ddefca8mr22345824qtf.86.1659526247481; Wed, 03 Aug 2022 04:30:47 -0700 (PDT) X-Received: by 2002:ac8:59d5:0:b0:31f:dde:fca8 with SMTP id f21-20020ac859d5000000b0031f0ddefca8mr22345807qtf.86.1659526247297; Wed, 03 Aug 2022 04:30:47 -0700 (PDT) Received: from pc-4.home (2a01cb058918ce00dd1a5a4f9908f2d5.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:dd1a:5a4f:9908:f2d5]) by smtp.gmail.com with ESMTPSA id n15-20020a05620a294f00b006b5cc25535fsm12275757qkp.99.2022.08.03.04.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 04:30:46 -0700 (PDT) Date: Wed, 3 Aug 2022 13:30:41 +0200 From: Guillaume Nault To: Matthias May Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, roopa@nvidia.com, eng.alaamohamedsoliman.am@gmail.com, bigeasy@linutronix.de, saeedm@nvidia.com, leon@kernel.org, roid@nvidia.com, maord@nvidia.com, lariel@nvidia.com, vladbu@nvidia.com, cmi@nvidia.com, yoshfuji@linux-ipv6.org, dsahern@kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-rdma@vger.kernel.org, nicolas.dichtel@6wind.com, eyal.birger@gmail.com, jesse@nicira.com, linville@tuxdriver.com, daniel@iogearbox.net, hadarh@mellanox.com, ogerlitz@mellanox.com, willemb@google.com, martin.varghese@nokia.com Subject: Re: [PATCH v2 net 1/4] geneve: do not use RT_TOS for IPv6 flowlabel Message-ID: <20220803113041.GC29408@pc-4.home> References: <20220802120935.1363001-1-matthias.may@westermo.com> <20220802120935.1363001-2-matthias.may@westermo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802120935.1363001-2-matthias.may@westermo.com> X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Tue, Aug 02, 2022 at 02:09:32PM +0200, Matthias May wrote: > According to Guillaume Nault RT_TOS should never be used for IPv6. > > Fixes: 3a56f86f1be6a ("geneve: handle ipv6 priority like ipv4 tos") While I'm at it, the SHA1 is normally truncated to 12 charaters, not 13. > 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 >