From patchwork Tue Jul 16 08:57:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Caratti X-Patchwork-Id: 13734187 X-Patchwork-Delegate: dsahern@gmail.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 83C9017B419 for ; Tue, 16 Jul 2024 08:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120277; cv=none; b=CI5EjgUNjQq/bEvPfBt5p1GT+ZLVADKIoRh9VFxl4ay2UxgSoNLP7rylfn4OtFdvIj0+QfsD+H5WcqqtyifCN4jHWPP7wz/YzIy65WgmlhnVJZ6Ne9IhNXRFhv+vPCFhWTsE2HbCaeILFomFQ6mmxE8O7IAAbG8LGrICZEH2Hh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120277; c=relaxed/simple; bh=444k9hPSF3E/PZXH96H6dIB4wwHCAtgQq+tuCvRiuos=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IMsGulJHgIlQvCFNK7LiPN2GQqRVj/z76lZNTbafKvLA6xRIG9B1MdDZikD+qVgJa07y392VLTBG6z0t7ipzWA6891sNSLVNgVqRUZBRfsvSGaM6w2wX5qa3AgUiXuK2SeYr0R0AmXCwrhUfT7nc0z7/ggcuTMYWq8ZXMMPcRZc= 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=W6FvAl93; arc=none smtp.client-ip=170.10.133.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="W6FvAl93" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721120274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N25BXcznMb0EShnG7fU1a/5xcMTDDanVAYNV9H7ONVc=; b=W6FvAl93RIQUCR999RQ1O4T0DBhwWiGYFeZ8Kilu75EcKj/7eu6JDjSfBgY9Dbk20o6NRU eHKv9x6RHxhD7KCAsGOz+bzgg9aXsjaXS3rIHje9OOKmbnpuwjknVNCwKVROEFC+NYp5kz gXYJyuLTZZabCKGKMYxGnoN6PX8pBt8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-86-ueNuGEYVNcOYCm29jWdjog-1; Tue, 16 Jul 2024 04:57:50 -0400 X-MC-Unique: ueNuGEYVNcOYCm29jWdjog-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0312C1955D53; Tue, 16 Jul 2024 08:57:49 +0000 (UTC) Received: from dcaratti.users.ipa.redhat.com (unknown [10.45.225.170]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D81461955D42; Tue, 16 Jul 2024 08:57:45 +0000 (UTC) From: Davide Caratti To: =?utf-8?q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: David Ahern , aclaudi@redhat.com, Ilya Maximets , echaudro@redhat.com, netdev@vger.kernel.org, Jamal Hadi Salim , stephen@networkplumber.org Subject: [PATCH iproute2-next v3 1/2] uapi: add support for dissecting tunnel metadata with TC flower Date: Tue, 16 Jul 2024 10:57:19 +0200 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Patchwork-Delegate: dsahern@gmail.com Update uAPI headers to allow dissecting tunnel metadata with TC flower. Signed-off-by: Davide Caratti --- include/uapi/linux/pkt_cls.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index 229fc925ec3a..30767cc99896 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h @@ -554,6 +554,9 @@ enum { TCA_FLOWER_KEY_SPI, /* be32 */ TCA_FLOWER_KEY_SPI_MASK, /* be32 */ + TCA_FLOWER_KEY_ENC_FLAGS, /* be32 */ + TCA_FLOWER_KEY_ENC_FLAGS_MASK, /* be32 */ + __TCA_FLOWER_MAX, }; @@ -674,6 +677,10 @@ enum { enum { TCA_FLOWER_KEY_FLAGS_IS_FRAGMENT = (1 << 0), TCA_FLOWER_KEY_FLAGS_FRAG_IS_FIRST = (1 << 1), + TCA_FLOWER_KEY_FLAGS_TUNNEL_CSUM = (1 << 2), + TCA_FLOWER_KEY_FLAGS_TUNNEL_DONT_FRAGMENT = (1 << 3), + TCA_FLOWER_KEY_FLAGS_TUNNEL_OAM = (1 << 4), + TCA_FLOWER_KEY_FLAGS_TUNNEL_CRIT_OPT = (1 << 5), }; enum {