Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2624627imn; Tue, 2 Aug 2022 09:45:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EhsOfItdY60U0e/YmIXEDP4vE6+ushxBFioZpsScXUVRS/LlNarsHPM6A9GBH/N8rnshm X-Received: by 2002:aa7:982f:0:b0:52d:9787:c5c5 with SMTP id q15-20020aa7982f000000b0052d9787c5c5mr8354251pfl.24.1659458752741; Tue, 02 Aug 2022 09:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659458752; cv=none; d=google.com; s=arc-20160816; b=Sgcwip8os48pnp5e7SYZ6iv820P2bMU9/dgCdbIE1/Zz6j6FC0wUrblwUTm9n6rcJ7 NNo5QHNtLRhexLgBYqtk0SsaFWtwoXNB+kDOUkCKCPrqJOmPuZAS67DeoeStrXva6Zkd EuZME7EK/6xxG/gSn5XkJt/9pAOdchUnWB74rqA7evo38dXYzik5+hgrtIb9tTlMywSc 9eDuGp6YdA8f22timwtxsled1UO4oJLhYwswRUSfW6HUqpnVB6j/SpUjYtTlNdcf6tYs EHpElGyrCWkUMRmjhNRlSKEVgzmZoZ/c9ErI+tPbtFfGSk5H95nE0UuExsOFw7Bh9HdJ elsg== 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=L8pobBAm4i46mJY839PgrpcD3mazYkh5vnTY9bSvya4=; b=glzJIreMEcLZXLyfc3DA+vKw3irwfhemPVGdrwzxDUMokV9qRC7v6QesGTeqmADpnM NBGsdwhfvhlQAF6PdyozD5yAmLpioNPDkFLC7v2ppS/QCNjDQigRWDb1D5rqshr9DiZF 3ohpUariYoNIxZl9yfLtXnOvfTPixPjOc+X8YeC5/sA2kXRntDFpHJhEPXXil55w/myP 1U/Xrpi6GjIvnAIxb1tnc/WGy9u4DO2cm89nIROkA+Q91tmmI3mcoRYPcjNe89n69sDz V12hrJz1dHrlRxi389PeAKTfYcdzHJpoOiNLIsHXhXHIPIz1e/PZhOYOKbZwPjQaqIHD 1qNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fL9+VuRJ; 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 f6-20020a637546000000b0040c9f7f2987si15279653pgn.135.2022.08.02.09.45.38; Tue, 02 Aug 2022 09:45:52 -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=fL9+VuRJ; 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 S237822AbiHBQn7 (ORCPT + 99 others); Tue, 2 Aug 2022 12:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234534AbiHBQn6 (ORCPT ); Tue, 2 Aug 2022 12:43:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63F4163BD for ; Tue, 2 Aug 2022 09:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659458636; 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=L8pobBAm4i46mJY839PgrpcD3mazYkh5vnTY9bSvya4=; b=fL9+VuRJwCUdPdmYpErh9KEK7wEY6qDrx80CGveNNViijLuAF0IJmM6Z+axpKoEs5uPUFL Tnw0AlIYDUqUwPyqv4R++eW4Y2BkSZ5FCfpLJ7y8d1CsaQnkV01ngpud9gblF7pLnySEJH TNrhtvVBswTFGOLROoDyz974I6lLffI= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-596-63J8WGLhOHm2G5M72aNNcg-1; Tue, 02 Aug 2022 12:43:55 -0400 X-MC-Unique: 63J8WGLhOHm2G5M72aNNcg-1 Received: by mail-wm1-f70.google.com with SMTP id c66-20020a1c3545000000b003a37b7e0764so9522679wma.5 for ; Tue, 02 Aug 2022 09:43:55 -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=L8pobBAm4i46mJY839PgrpcD3mazYkh5vnTY9bSvya4=; b=W7r2Bk+9oaHa4CKCxWvbGABR2lJCnDa0S0ZtXdeH9Q8uwBVdNq6O9gcmRrKdYn/YGY FRb2SHCM/ky5ZLp5+p4hdCQYPpJrHGilOt7UB2oUpwouQNmzwlLvhJBXJlvLfKACiZjp y+RQN1Sm36++Dv9R5SiA9X4BO3yWcSHfB4Z9EiUFXVNv6Rx6G4khgefnJJy6CsPAkfoo j2ygSQmbmnJ6PPLtNwkZCdLHm/bIDecK2JPdqiIf3NetkucQ9cT+kG/q9mcVAzETLl2y s0RFhvD2EEHixotR1nDpn+6m+DVjthFskK5xVOO91Q1K/kObmGZW9H69bNgaMtzLyGv3 KMCg== X-Gm-Message-State: ACgBeo3cF7OgRrYrblHICsUoNdD9M+fh2UE9pccgWjnFyIbMiov2iZJF 94OrMWr7iwN4iGFdC3bZ+wrzG2YZgVf4PvY+Ezn3XH+liVBycLEI0X7Xe/ncEWW4qx9xqtbMqJa s7zFzvCgbSUjKGvu5/A8E7ekU X-Received: by 2002:a05:600c:3556:b0:3a3:2a9c:f26 with SMTP id i22-20020a05600c355600b003a32a9c0f26mr224957wmq.58.1659458633900; Tue, 02 Aug 2022 09:43:53 -0700 (PDT) X-Received: by 2002:a05:600c:3556:b0:3a3:2a9c:f26 with SMTP id i22-20020a05600c355600b003a32a9c0f26mr224944wmq.58.1659458633666; Tue, 02 Aug 2022 09:43:53 -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 g16-20020a5d5410000000b00220633d96f2sm8460995wrv.72.2022.08.02.09.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 09:43:53 -0700 (PDT) Date: Tue, 2 Aug 2022 18:43:50 +0200 From: Guillaume Nault To: Matthias May Cc: netdev@vger.kernel.org, davem@davemloft.net, yoshfuji@linux-ipv6.org, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nicolas.dichtel@6wind.com, eyal.birger@gmail.com, linux-kernel@vger.kernel.org, jesse@nicira.com, pshelar@nicira.com, tgraf@suug.ch Subject: Re: [PATCH v3 net] geneve: fix TOS inheriting for ipv4 Message-ID: <20220802164350.GA11906@pc-4.home> References: <20220802122025.1364123-1-matthias.may@westermo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802122025.1364123-1-matthias.may@westermo.com> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 On Tue, Aug 02, 2022 at 02:20:25PM +0200, Matthias May wrote: > The current code retrieves the TOS field after the lookup > on the ipv4 routing table. The routing process currently > only allows routing based on the original 3 TOS bits, and > not on the full 6 DSCP bits. > As a result the retrieved TOS is cut to the 3 bits. > However for inheriting purposes the full 6 bits should be used. > > Extract the full 6 bits before the route lookup and use > that instead of the cut off 3 TOS bits. > > This patch is the functional equivalent for IPv4 to the patch > "geneve: do not use RT_TOS for IPv6 flowlabel" This last sentence assumes this patch and your IPv6 series are going to be merged roughly at the same time and with the same title. There's no such guarantee though. So I think we can just drop the reference to the IPv6 patch. But wait a day or two before sending a new version: others might have different opinion, maintainers might want to apply the patch as is or adjust the message manually, someone may have other points to comment on... Anyway, the rest of the commit message and the code look good to me. Thanks for fixing this! Acked-by: Guillaume Nault