Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp509393lqp; Wed, 12 Jun 2024 08:07:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBJ9yMfhBklgC8gR94oRhBQrec2WMVGfS9jT2/FGMLF+zRXvbOzkJPo91v/ZDuUjG/mz8o3LwpoOSoLWFEj446Mibu8blWp5EquigeQg== X-Google-Smtp-Source: AGHT+IEq64RKrrN9B3L3WKCImf/qBDezm6qYILcKF9VeTAQPIwnTUre0xyctv8JWrGXmGVFQXX79 X-Received: by 2002:a05:6808:2e93:b0:3d2:1ed4:78b2 with SMTP id 5614622812f47-3d23e11f42cmr3090545b6e.55.1718204843284; Wed, 12 Jun 2024 08:07:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718204843; cv=pass; d=google.com; s=arc-20160816; b=r6vWGW4/sT0SMt+kMIQy03PkDctnyaE9gXLp4C9r9QuRfZ0reP/3NcJoqxcMF3tH4v 4vcsh7EO1AETBw91JQPIER3W1E07mrTNiM3pNowsEHdHrQYhXMob/9FjfkYmqeQAizMB wfkCQNK19dzpnLidtvel0ibLms9JuQdqGS03Z/2G4g/M/7agPOp7vL7g0Z+uEJrG1Qbw O+6dOAX+bJos98CaAYEueAfFyofzYqBZFsfw5xXm+vl3bEqK7ZCv/Tsw+1NKXk6OLA40 TWAYM4UHSAsKlMPavsiijhLgVXENBCrKJ1CEukIVdJsnXXrWQHSxczvAdnpEFxpDz/HL Ltlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AK7Qzf/MhUoQm7mnY6EWFd26DeQUWTNXILgKlaTUO3c=; fh=DpPgspG4Z+SElbT7IhIEkJ8sX8xLKjCyxrjXT4M9B9E=; b=DSLdKxCdMhpWRdnj8aCEj5z1AZ8tceunjRd42P8tdvZzKxA4hKtrTPhqL4C4qnEcZz OFSINTpRS4XnpoeW1h4h6eBcLJ27p19f5nX0Vl2d94MKj6l2c85R/kss/7/40Qjhuf2s mGic63Y4JN+EXK/YJM77JETsgbtmC67HIIfGAV2VUJjwAUoZhGaiVnCGOwMGxnsOHqW8 hQRyj++mYGP5vKY4XWmp5jemx3whpoZ5BPiig5NJ0NLqoCL4QZmpcDaOKZ+QCYqLF6I2 Ip45Wb735CVBLmki1/VJyn8NnTRXnbIUJCcZWuxroR7uUm7clExO7uuiWgmQlHr6Dy2F 1TmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fas3SAW2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211733-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 5614622812f47-3d22a2f5265si2303864b6e.97.2024.06.12.08.07.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211733-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fas3SAW2; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211733-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211733-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7738428772E for ; Wed, 12 Jun 2024 15:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E51317F506; Wed, 12 Jun 2024 15:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Fas3SAW2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C80FE1DDF6 for ; Wed, 12 Jun 2024 15:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204479; cv=none; b=DYv+ikqSaJ/t9as/Eyv6LW6RlB9LpRZ4Slc1ESE7/WqUcP20x/YOKoOm6MbkK20/Rkqcdrp2msO0JnShiEtA+vh/6+Wv9RXTCcjPS4X2l4cixY5zkbqFhcL47Hn955s36pOdNLEJo48xB/r4N6rD+61JWJBLiCX8ynsgmCUC7ZE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204479; c=relaxed/simple; bh=99ZGerARksGUGdw+E23Lcu8HvgTTG9/x1SmFsKpGl20=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EBQ4lcpfLxmUdb1xcntuc71CIREv1H8mewwe57hwClT1nTj6P8Um2JEHl9w5Rk8BjuvUdL521fkOJd6V/YkmoAQhZtuNfB08TTeImSiA00sTiXR/YqGyfqYbU3M1coHCzeMJ3CQbtPLmoxbwtGp0ouHy+aBLkOjPZmPeQJ+DsRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Fas3SAW2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718204476; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AK7Qzf/MhUoQm7mnY6EWFd26DeQUWTNXILgKlaTUO3c=; b=Fas3SAW2CjbWoV8KGQZvhGQVm07fkAW+Jrd070R1rod7+7lrOHyJp04Id/nC5w11bBthbo ms7Cj/w6JY5wd6oUdR4vhYiA2mXAjMCm2rAMaJvsE+0cbBKup/qMPbqvyBuw5RPV5TRtD2 ZhLgfMF5UN/wVQYjX31Tm8C7hP3SYT8= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-211-SoQ-7KDuMS-iP7koNzYsXw-1; Wed, 12 Jun 2024 11:01:13 -0400 X-MC-Unique: SoQ-7KDuMS-iP7koNzYsXw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2ebf7a0ed89so12806301fa.0 for ; Wed, 12 Jun 2024 08:01:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718204472; x=1718809272; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AK7Qzf/MhUoQm7mnY6EWFd26DeQUWTNXILgKlaTUO3c=; b=TKUXL8Q37YTH49UuOIQwmLn6IrI51k0CNRlVuzNa1FezZZOP//BLnvE4vz42KJ+Pf/ 1Z38S63BCdfyUlfPL6Y8E04RNg2yWoMjJWfjWxQBrH9gvgh/TzkLxzAiQcvc5P7Sj9ga C88F5V9HS54yAbBzxwyb0PaO9GhjGxRJdXwUzE8Lcss5fgRjItuh9R6S3PDYuUhwLyke fkPujXFuwTdsqx+Pu+73DgUhGgr3dSEkX3F4E21vZ7f892kuUdnUsHPqGFHqIbXDTBYD jzEoAXgCdDFgM6ufcDOYCfp+eH81d0Q72iYTYFp2mwsyzSMR8Z6IXGnijF9EPDGZlshl hWbQ== X-Forwarded-Encrypted: i=1; AJvYcCV2Zqs5vMIrI+ezBC83XErh6cak1LmqmgaGsKxlNC3DnRr6l6ZUBfdiaymq3PwkLub/S9r4Q7VEUgU3x6dMFC50A+mLi7gA/Mb63nOW X-Gm-Message-State: AOJu0YzUNPisOaV+VGh4IZ8TNyRMQP6RT7J8FUUaFxHbx9Nq9OAKpLuA IT8jCeCKoOuratOI20POBW/6PHWTXgfmUHFGa2XFIOiVzbsiE1tHX+tSCDOBaqdx57pOBvvNvir vqgPunQbl/ozvDiAMUUocKC3JVdpABNBVdTTb+0sEyV83bwV8809fYvzbA0RLLg== X-Received: by 2002:a2e:99c7:0:b0:2ea:e98e:4399 with SMTP id 38308e7fff4ca-2ebfc94de35mr14250771fa.36.1718204472175; Wed, 12 Jun 2024 08:01:12 -0700 (PDT) X-Received: by 2002:a2e:99c7:0:b0:2ea:e98e:4399 with SMTP id 38308e7fff4ca-2ebfc94de35mr14250531fa.36.1718204471700; Wed, 12 Jun 2024 08:01:11 -0700 (PDT) Received: from localhost (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f26578176sm7756461f8f.11.2024.06.12.08.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:01:10 -0700 (PDT) Date: Wed, 12 Jun 2024 17:01:04 +0200 From: Davide Caratti To: =?iso-8859-1?Q?Asbj=F8rn_Sloth_T=F8nnesen?= Cc: Ilya Maximets , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next 1/9] net/sched: flower: define new tunnel flags Message-ID: References: <20240611235355.177667-1-ast@fiberby.net> <20240611235355.177667-2-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240611235355.177667-2-ast@fiberby.net> On Tue, Jun 11, 2024 at 11:53:34PM +0000, Asbj?rn Sloth T?nnesen wrote: > Define new TCA_FLOWER_KEY_FLAGS_* flags for use in struct > flow_dissector_key_control, covering the same flags > as currently exposed through TCA_FLOWER_KEY_ENC_FLAGS, > but assign them new bit positions in so that they don't > conflict with existing TCA_FLOWER_KEY_FLAGS_* flags. > > Synchronize FLOW_DIS_* flags, but put the new flags > under FLOW_DIS_F_*. The idea is that we can later, move > the existing flags under FLOW_DIS_F_* as well. > > Signed-off-by: Asbj?rn Sloth T?nnesen > --- > include/net/flow_dissector.h | 17 +++++++++++++---- > include/uapi/linux/pkt_cls.h | 5 +++++ > 2 files changed, 18 insertions(+), 4 deletions(-) > > diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h > index 99626475c3f4a..1f0fddb29a0d8 100644 > --- a/include/net/flow_dissector.h > +++ b/include/net/flow_dissector.h > @@ -16,7 +16,8 @@ struct sk_buff; > * struct flow_dissector_key_control: > * @thoff: Transport header offset > * @addr_type: Type of key. One of FLOW_DISSECTOR_KEY_* > - * @flags: Key flags. Any of FLOW_DIS_(IS_FRAGMENT|FIRST_FRAGENCAPSULATION) > + * @flags: Key flags. > + * Any of FLOW_DIS_(IS_FRAGMENT|FIRST_FRAGENCAPSULATION|F_*) ^^ nit: there was a typo in the original line above. Maybe this is a good chance to put the missing '|' before 'ENCAPSULATION'