Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2660868pxa; Fri, 7 Aug 2020 17:44:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytHlUiRp8UF0H/KxkVbvBlUAUOfs88sDk/i5jn8p9nrfExv/S2NmvzsjJcM7M+oWxv4QPz X-Received: by 2002:aa7:c6c2:: with SMTP id b2mr11710621eds.173.1596847493014; Fri, 07 Aug 2020 17:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596847493; cv=none; d=google.com; s=arc-20160816; b=twutBtpMV1jFkmArzUMkJLDqkep20oHrEmaapMIRqFfkDKcNISboaz26yYARqRt4gu YsDmBId/tJKn2cgqou5nsG6rnDOGkVZlceUkDMmsQAGWHYa/b3acnrPCx3J3edrHv5v+ CSxC2AD6ooyvJVS5mCDwBoUXJd//Ur3DHMbWjj15WCD+cUA+/uN69wpRPHjd5kF78DRT SwLY08Nl3exc7lQBHEgDXT8RWKTjtCTZu/Iv1W8XfQ67goL2B0AhG+E7zc3/RRKKc2ns bo0b5BcbPr/EykkYAgRR9gCA4SGoxpvWnb/DPaIyP6h4fZ1GHSVVz+9hIFVnmKWHEYE4 MRfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=525lIq3eD/DhK/Ix73afc53+bmirDYcNx14Zy0SAgss=; b=p9NfjeCFys5jTHg3io+R02fkSiAkE26ZOgvC2Vx9d+t1dx8463GrzJUyTVKR4mGu03 EFjinHj2DAMShEcHlpMJDZapLOmUz+m8DQ4fHdaLeMh3flSLJL0x6pV0QbEhKwLXBKez n1splpXZjqR409UnZ9VqOJy9kSRwj1/lfvTCCecr6OmHoX058UcvG7+XR3U208HT9zJS 963EzTjMms5SNqnArFg1TBleXRvkJIIxyESsSW1KwuaAKaCEkyIMSoC2PO/zZmbSAhpU SvPyS4jUTUGHM5D/BofqGVdMWU3Sfb96xCCEB5JK4nVjqm9HIFX3N3aySVoFKa/VZTrp HHOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si6233261edp.229.2020.08.07.17.44.29; Fri, 07 Aug 2020 17:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbgHHAnp (ORCPT + 99 others); Fri, 7 Aug 2020 20:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbgHHAnp (ORCPT ); Fri, 7 Aug 2020 20:43:45 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131A4C061756; Fri, 7 Aug 2020 17:43:45 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 649FA1276FD65; Fri, 7 Aug 2020 17:26:58 -0700 (PDT) Date: Fri, 07 Aug 2020 17:43:42 -0700 (PDT) Message-Id: <20200807.174342.2147963305722259387.davem@davemloft.net> To: ahabdels@gmail.com Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrea.mayer@uniroma2.it Subject: Re: [PATCH] seg6: using DSCP of inner IPv4 packets From: David Miller In-Reply-To: <7f8b1def-0a65-d2a4-577e-5f928cee0617@gmail.com> References: <20200804074030.1147-1-ahabdels@gmail.com> <20200805.174049.1470539179902962793.davem@davemloft.net> <7f8b1def-0a65-d2a4-577e-5f928cee0617@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 07 Aug 2020 17:26:58 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ahmed Abdelsalam Date: Thu, 6 Aug 2020 08:43:06 +0200 > SRv6 as defined in [1][2] does not mandate that the hop_limit of the > outer IPv6 header has to be copied from the inner packet. This is not an issue of seg6 RFCs, but rather generic ip6 in ip6 tunnel encapsulation. Therefore, what the existing ip6 tunnel encap does is our guide, and it inherits from the inner header. And that's what the original seg6 code almost certainly used to guide the decision making in this area.