Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3039306pxa; Tue, 25 Aug 2020 09:47:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyJgnO8hHROVwuIL0n3iZ5rNyYEUhBImU5tCxgZH8ex9Y5O1aNeGC3njeB0Dv9+5IsPyyJ X-Received: by 2002:a50:9fe6:: with SMTP id c93mr10726400edf.286.1598374070293; Tue, 25 Aug 2020 09:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598374070; cv=none; d=google.com; s=arc-20160816; b=P+1v8n/E0L2ryjWvgslpD492U0b2xjJOyOK/V4T3yYAjC1KY3iLbUPMnHS/r1O7XfZ 6N5a4g6Q13ZAZL/YGNv+reOwo61wPowFmns379m9Jzh7Ttnv5QOl6jKwpierja00xYdb Vio8L2UXFciDefOf1xtXJ2gDNC+EP1VCeEOWSg29kqlV5utho0ENfuUUUSWZA0Ql8Zs8 N+rweFQGyMW698PhJ1nSEbA3FGi5xsgZ8yu6ORadLuSXjV/tAuxJ3a0a+RdfPhVfvrSM Okg3ZYp7RNxj5q1OXsJ6C66wKbSKFLG0iaIbwfaUSzXwNcVK3A+ALqysM4NKrSOx8EOM 4Uzw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=AXoocnEsJlEHHnihReD4/CUqd25iKJyrxvO68JJswpY=; b=CMLr9F6vQy1iXnzrmigor6fryEou6WmwVComKycwmTU23Uh/g/GGYLrSozuqV4GHRZ +qazlUkgkrWZSAb/LEOIBfoBY6JrD6loGMmQ2fzZHaFMP3Oo7YqYg6GT5tjKJXe2qAp2 w9nXcniIW8xidlIKxP64rBsh0Ts/bgjpU7FhJAqssvzEgGOGxalqzdTbu7L3S6Wyb/wC q9gyLFEOvI11+6qy/fetTV3ugp9qpVbjCH+qQSXdTVNu5zuus75ODLy9Tud4PXxKkK58 VLQ19LiSiembtTJ14vji7dZmZhK6gy/MSCF5jbyuOP/P3DI7Vh6F5E8M/1vF6fX9cY3A /7Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UdFoMokp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si10022895ejj.168.2020.08.25.09.47.27; Tue, 25 Aug 2020 09:47:50 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UdFoMokp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgHYQp5 (ORCPT + 99 others); Tue, 25 Aug 2020 12:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgHYQp4 (ORCPT ); Tue, 25 Aug 2020 12:45:56 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB04AC061574; Tue, 25 Aug 2020 09:45:55 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id 2so6669036ois.8; Tue, 25 Aug 2020 09:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AXoocnEsJlEHHnihReD4/CUqd25iKJyrxvO68JJswpY=; b=UdFoMokpr4QdtbVhvp+NJOxElMwfc66NbAx1KDdFzkU4xkoBmb56QHw6NgJFxnk4pk 67619ero98YtGRFZ7LCYu8gAbd3MbZwoNxf0X8xU9G53eUwXrRttCysxTeyaP6U0bTbK jSukn+F6XK52/umquq9l7FJyQtkkI5CANagey23quOuoZqRFyzp54XXyrlzel9dI/fQo r5gu7VdD1AAbCny1n60lcf5HT2OIn/gr+ipaejvdkSreH+dpAsH95LGZ5H1LSZjTYdqN VoXFIcpt/ImSFYNbwQJM1afpNa2pw4Y+p01PmoTbH97jGLU6rZS3oJk/+gIChbMruxWM KPRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AXoocnEsJlEHHnihReD4/CUqd25iKJyrxvO68JJswpY=; b=XyJB0ztwl5WnR+j+iGURCRjx5+Drx8foWZmy5WFWqIKthzLHzveJ1uXhLUMD0zM7uq VnSUJXlsS3BRq0ggLUgzCkQhZ95KmJ34Ra+VIQU61c2wTEkGyaPGWTQonb5iiCxDA5SC 9D+PQMkXSgMftnhT2ALhe1DwTpwtKeJ3d/4+0xEAMSosRZUeXzJ5Fi25WjdLVtPYsIkE IaHyXqK6aJbtnhzkNdGucQcJ+rVvMufDrm+0wOv3QyNKfK/1W1OcmEzpRRz91ZSdUOO+ VPbho85FDFN9+5xNcJ2yGgHUT93QC6efQklnhtVeMsxOj3kwlFRy0nnQM3r6ieGSxAJa +DwQ== X-Gm-Message-State: AOAM530h5vxR93Hytu05Ci7CbgFxfJksDo2y1PpqxfWMaHXW4ZNl+9pz AFtdwgcO+6zcK2QU6XIqJRs= X-Received: by 2002:a54:4715:: with SMTP id k21mr1313602oik.165.1598373954476; Tue, 25 Aug 2020 09:45:54 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([2601:282:803:7700:c847:82a7:d142:cbfb]) by smtp.googlemail.com with ESMTPSA id m19sm2748597otj.29.2020.08.25.09.45.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Aug 2020 09:45:53 -0700 (PDT) Subject: Re: [net-next v5 1/2] seg6: inherit DSCP of inner IPv4 packets To: Ahmed Abdelsalam , "David S. Miller" , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: andrea.mayer@uniroma2.it References: <20200825160236.1123-1-ahabdels@gmail.com> From: David Ahern Message-ID: Date: Tue, 25 Aug 2020 10:45:52 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200825160236.1123-1-ahabdels@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/25/20 10:02 AM, Ahmed Abdelsalam wrote: > This patch allows SRv6 encapsulation to inherit the DSCP value of > the inner IPv4 packet. > > This allows forwarding packet across the SRv6 fabric based on their > original traffic class. > > The option is controlled through a sysctl (seg6_inherit_inner_ipv4_dscp). > The sysctl has to be set to 1 to enable this feature. > rather than adding another sysctl, can this be done as a SEG6_LOCAL attribute and managed via seg6_local_lwt?