get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/126871/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 126871,
    "url": "https://patches.dpdk.org/api/patches/126871/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230516063747.3047758-6-michaelba@nvidia.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230516063747.3047758-6-michaelba@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230516063747.3047758-6-michaelba@nvidia.com",
    "date": "2023-05-16T06:37:45",
    "name": "[v1,5/7] ethdev: add GENEVE TLV option modification support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4e07c462ce0b4e64a3a9ee6a7093aa4725fcdbac",
    "submitter": {
        "id": 1949,
        "url": "https://patches.dpdk.org/api/people/1949/?format=api",
        "name": "Michael Baum",
        "email": "michaelba@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230516063747.3047758-6-michaelba@nvidia.com/mbox/",
    "series": [
        {
            "id": 28001,
            "url": "https://patches.dpdk.org/api/series/28001/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=28001",
            "date": "2023-05-16T06:37:40",
            "name": "ethdev: modify field API for multiple headers",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/28001/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/126871/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/126871/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id ECD1B42B1F;\n\tTue, 16 May 2023 08:38:41 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 215B742D74;\n\tTue, 16 May 2023 08:38:18 +0200 (CEST)",
            "from NAM12-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam12on2086.outbound.protection.outlook.com [40.107.237.86])\n by mails.dpdk.org (Postfix) with ESMTP id 00AE742D6D\n for <dev@dpdk.org>; Tue, 16 May 2023 08:38:16 +0200 (CEST)",
            "from CYZPR10CA0001.namprd10.prod.outlook.com (2603:10b6:930:8a::25)\n by PH7PR12MB6859.namprd12.prod.outlook.com (2603:10b6:510:1b5::12)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Tue, 16 May\n 2023 06:38:14 +0000",
            "from CY4PEPF0000C97E.namprd02.prod.outlook.com\n (2603:10b6:930:8a:cafe::69) by CYZPR10CA0001.outlook.office365.com\n (2603:10b6:930:8a::25) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.31 via Frontend\n Transport; Tue, 16 May 2023 06:38:13 +0000",
            "from mail.nvidia.com (216.228.118.232) by\n CY4PEPF0000C97E.mail.protection.outlook.com (10.167.241.198) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.6411.11 via Frontend Transport; Tue, 16 May 2023 06:38:13 +0000",
            "from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com\n (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Mon, 15 May 2023\n 23:38:06 -0700",
            "from drhqmail202.nvidia.com (10.126.190.181) by\n drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.986.37; Mon, 15 May 2023 23:38:05 -0700",
            "from nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.181)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37 via Frontend\n Transport; Mon, 15 May 2023 23:38:04 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=f3ZxLIJc9NPWdV+w1fTdm9DKBw3a+j53/fEWFHCS/QFZPhIW8mxU9+XoJs8/1woGq/17pbLJFfjmnHtXsmCQLQ1bgBz67QY+K1h4vpCTsu59scIDHbhf+Nterk7pe03tYX1zUzIkXTRljdxYwtFVd9reSiZSgOJYI7iFi66X1ZljxIzSb6hpsyOoYvWEcw7FmFKcjUUOEMVTCLYQr8cD/f8PM4t6AGC3wh/1m3Z5IVfLqIAvSKXE6KC0XHnL7zRNgtvF2vF8q2j/GmgVc3lCVJsOklO9ZxwwPIB+jNSyVCKuLTwHKBegMHWNWeQfnE3q4rsGLTqaBKZ5mLx+lH5aNA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=g3AN0DyO2hoEfPewtdVCUtcmUALz+iVNxCua84TkSJY=;\n b=Do8XgD0HQZq8++T/DB8XpFIte+TxN1JXyVqFxEjCmPoQ1E0vbywZIsyEXmjESruw21Vo9SztudL8gKihP6ZHgtef74KaBXjsArZMaSbn9uHIyd++DGjIXTBffgckZJ3Ypgev91CY41UXgLidnNju/qgVmSbdRqmI8eBL+4VkJ+GGGd8Vffmes9wu+YzAwaiwZnZnd908HDHFz2Glz5bT9DTdFjwtRTF9AYOs7Ad6I+q0IgHT8LaiDhqnfhxayHmdwgQVpJU0UpoIkwS/Jmxyabsyl2Vj4/XVx9ZPE+JmIFjER+qyal+zozqWVVLmZ/hx5f/OxYIM2joSXF9jEMTAuQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.118.232) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=g3AN0DyO2hoEfPewtdVCUtcmUALz+iVNxCua84TkSJY=;\n b=La7k/ZE4Rb2o9wOXUxAS8ed4QZHRddQ9n18QlA3MtBsN19JIhfKzQTfBTDCMbdpMAHvav6PYRLJwGJeXud8Tca81uPNoFIZID0N6r71CrWqTUcFpJiMvwna4wdiU+Fb916pixQ9oEYLd//jf5zsC2QR2ww7R7xAI0WGBxVhsMNAHvgzXhAw8tEdAqosx6nZD7Bu9mxKoLrEGJuB2OIvzi46KJPsurSSvf7L7p+RL9uLvyI9s9KrERvbhK17rM60nboZEBep8erhYXoWz1EgxnmTg8k7lPrhM0nloJZJUPeciJDWNHPH3gsXB8yKBp1T3dsCudLt454EZxuhNlHjoAg==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.118.232)\n smtp.mailfrom=nvidia.com;\n dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.118.232 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C",
        "From": "Michael Baum <michaelba@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Ori Kam <orika@nvidia.com>, Aman Singh <aman.deep.singh@intel.com>,\n \"Yuying Zhang\" <yuying.zhang@intel.com>, Ferruh Yigit <ferruh.yigit@amd.com>,\n \"Thomas Monjalon\" <thomas@monjalon.net>",
        "Subject": "[PATCH v1 5/7] ethdev: add GENEVE TLV option modification support",
        "Date": "Tue, 16 May 2023 09:37:45 +0300",
        "Message-ID": "<20230516063747.3047758-6-michaelba@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230516063747.3047758-1-michaelba@nvidia.com>",
        "References": "<20230516063747.3047758-1-michaelba@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "CY4PEPF0000C97E:EE_|PH7PR12MB6859:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "62ea44ed-3348-4ec6-8191-08db55d81fbe",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n RO1YfK3XckpbB6pQ7lp8bx8VKc/GHEArqjlqTpa5bUXm4SYUkJiS5/vm9T0zzXsZ1SVhWw2h82BnEGy87gjOG/9TiYDEjK3disBaEvrm9jHsAAJNY9D9jFcyXz1RVS5TjrX4wY0xGG28bsSH2SPQ4BfE37u5q/vQ2DjSkITH7xNDb+BuitF8oQIWDVV2xHo1NwLyJ1LDv31Tj1J+yeuc5PUG5fyr+x284d3v8z4a0lur/BKJA/Oebp4XwIFhsrU35QWRmgNPOv0/wS164Fmf2BGzxr5bWxtVWYftBUykoXKW8G6g+7Mwf9h4NDUgEstvciX0x2isVRSq1ob7zWorcIBGyQpqR8Yo8xQJeThcWVQMOPX31mdrVQIMczrAxAcWXQvqlQqLpG5n18H0bfdKgVkWY1D1fR+aguIJxGBvi+9nH9bn7fK2D2hvCrk5oNJCV+ngS40CYWJRTsnM09XSGKQbsIFXqu1gwCOx8WKm/bTkh3tyE7QHjPkHVUXiNH5KseQqvsNv6hNDBBFekUt5iuCcgcGetgi5UsNHflh5gFXOF6SzGdVMGoyLLjfrsMm4ODSuyrN+/aYou7x1tj8e66ab9NCi/t2fpugzZdX3VKnK47G/K9vyF1WTLn9M+w4s6EioZQYEi0OPbhWVclhWu60qrVl4QBvZ9tPeHGzINcZUP3r29ycKm6mPh8PPGRmAwY9hWiFACJ5eMkQty4axQd/7jLBkMp3BvqeABPJe6Hbc9/FjbCmi/s8BJM0MlGWtyWyJlRB5Ex614SGyx2ENtg==",
        "X-Forefront-Antispam-Report": "CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE;\n SFS:(13230028)(4636009)(346002)(376002)(136003)(396003)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(478600001)(40460700003)(54906003)(8676002)(86362001)(8936002)(5660300002)(7636003)(2906002)(36756003)(82310400005)(4326008)(6916009)(70586007)(70206006)(82740400003)(356005)(316002)(40480700001)(41300700001)(36860700001)(47076005)(186003)(6286002)(2616005)(1076003)(26005)(55016003)(83380400001)(336012)(426003)(7696005)(6666004)(21314003);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "16 May 2023 06:38:13.5838 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 62ea44ed-3348-4ec6-8191-08db55d81fbe",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CY4PEPF0000C97E.namprd02.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PH7PR12MB6859",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Add modify field support for GENEVE option fields:\n - \"RTE_FLOW_FIELD_GENEVE_OPT_TYPE\"\n - \"RTE_FLOW_FIELD_GENEVE_OPT_CLASS\"\n - \"RTE_FLOW_FIELD_GENEVE_OPT_DATA\"\n\nEach GENEVE TLV option is identified by both its \"class\" and \"type\", so\n2 new fields were added to \"rte_flow_action_modify_data\" structure to\nhelp specify which option to modify.\n\nTo get room for those 2 new fields, the \"level\" field move to use\n\"uint8_t\" which is more than enough for encapsulation level.\n\nSigned-off-by: Michael Baum <michaelba@nvidia.com>\n---\n app/test-pmd/cmdline_flow.c            | 48 +++++++++++++++++++++++-\n doc/guides/prog_guide/rte_flow.rst     | 12 ++++++\n doc/guides/rel_notes/release_23_07.rst |  3 ++\n lib/ethdev/rte_flow.h                  | 51 +++++++++++++++++++++++++-\n 4 files changed, 112 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 58939ec321..8c1dea53c0 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -636,11 +636,15 @@ enum index {\n \tACTION_MODIFY_FIELD_DST_TYPE_VALUE,\n \tACTION_MODIFY_FIELD_DST_LEVEL,\n \tACTION_MODIFY_FIELD_DST_LEVEL_VALUE,\n+\tACTION_MODIFY_FIELD_DST_TYPE_ID,\n+\tACTION_MODIFY_FIELD_DST_CLASS_ID,\n \tACTION_MODIFY_FIELD_DST_OFFSET,\n \tACTION_MODIFY_FIELD_SRC_TYPE,\n \tACTION_MODIFY_FIELD_SRC_TYPE_VALUE,\n \tACTION_MODIFY_FIELD_SRC_LEVEL,\n \tACTION_MODIFY_FIELD_SRC_LEVEL_VALUE,\n+\tACTION_MODIFY_FIELD_SRC_TYPE_ID,\n+\tACTION_MODIFY_FIELD_SRC_CLASS_ID,\n \tACTION_MODIFY_FIELD_SRC_OFFSET,\n \tACTION_MODIFY_FIELD_SRC_VALUE,\n \tACTION_MODIFY_FIELD_SRC_POINTER,\n@@ -854,7 +858,9 @@ static const char *const modify_field_ids[] = {\n \t\"ipv4_ecn\", \"ipv6_ecn\", \"gtp_psc_qfi\", \"meter_color\",\n \t\"ipv6_proto\",\n \t\"flex_item\",\n-\t\"hash_result\", NULL\n+\t\"hash_result\",\n+\t\"geneve_opt_type\", \"geneve_opt_class\", \"geneve_opt_data\",\n+\tNULL\n };\n \n static const char *const meter_colors[] = {\n@@ -2295,6 +2301,8 @@ static const enum index next_action_sample[] = {\n \n static const enum index action_modify_field_dst[] = {\n \tACTION_MODIFY_FIELD_DST_LEVEL,\n+\tACTION_MODIFY_FIELD_DST_TYPE_ID,\n+\tACTION_MODIFY_FIELD_DST_CLASS_ID,\n \tACTION_MODIFY_FIELD_DST_OFFSET,\n \tACTION_MODIFY_FIELD_SRC_TYPE,\n \tZERO,\n@@ -2302,6 +2310,8 @@ static const enum index action_modify_field_dst[] = {\n \n static const enum index action_modify_field_src[] = {\n \tACTION_MODIFY_FIELD_SRC_LEVEL,\n+\tACTION_MODIFY_FIELD_SRC_TYPE_ID,\n+\tACTION_MODIFY_FIELD_SRC_CLASS_ID,\n \tACTION_MODIFY_FIELD_SRC_OFFSET,\n \tACTION_MODIFY_FIELD_SRC_VALUE,\n \tACTION_MODIFY_FIELD_SRC_POINTER,\n@@ -6388,6 +6398,24 @@ static const struct token token_list[] = {\n \t\t.call = parse_vc_modify_field_level,\n \t\t.comp = comp_none,\n \t},\n+\t[ACTION_MODIFY_FIELD_DST_TYPE_ID] = {\n+\t\t.name = \"dst_type_id\",\n+\t\t.help = \"destination field type ID\",\n+\t\t.next = NEXT(action_modify_field_dst,\n+\t\t\t     NEXT_ENTRY(COMMON_UNSIGNED)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct rte_flow_action_modify_field,\n+\t\t\t\t\tdst.type)),\n+\t\t.call = parse_vc_conf,\n+\t},\n+\t[ACTION_MODIFY_FIELD_DST_CLASS_ID] = {\n+\t\t.name = \"dst_class\",\n+\t\t.help = \"destination field class ID\",\n+\t\t.next = NEXT(action_modify_field_dst,\n+\t\t\t     NEXT_ENTRY(COMMON_UNSIGNED)),\n+\t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_action_modify_field,\n+\t\t\t\t\t     dst.class_id)),\n+\t\t.call = parse_vc_conf,\n+\t},\n \t[ACTION_MODIFY_FIELD_DST_OFFSET] = {\n \t\t.name = \"dst_offset\",\n \t\t.help = \"destination field bit offset\",\n@@ -6423,6 +6451,24 @@ static const struct token token_list[] = {\n \t\t.call = parse_vc_modify_field_level,\n \t\t.comp = comp_none,\n \t},\n+\t[ACTION_MODIFY_FIELD_SRC_TYPE_ID] = {\n+\t\t.name = \"src_type_id\",\n+\t\t.help = \"source field type ID\",\n+\t\t.next = NEXT(action_modify_field_src,\n+\t\t\t     NEXT_ENTRY(COMMON_UNSIGNED)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct rte_flow_action_modify_field,\n+\t\t\t\t\tsrc.type)),\n+\t\t.call = parse_vc_conf,\n+\t},\n+\t[ACTION_MODIFY_FIELD_SRC_CLASS_ID] = {\n+\t\t.name = \"src_class\",\n+\t\t.help = \"source field class ID\",\n+\t\t.next = NEXT(action_modify_field_src,\n+\t\t\t     NEXT_ENTRY(COMMON_UNSIGNED)),\n+\t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_action_modify_field,\n+\t\t\t\t\t     src.class_id)),\n+\t\t.call = parse_vc_conf,\n+\t},\n \t[ACTION_MODIFY_FIELD_SRC_OFFSET] = {\n \t\t.name = \"src_offset\",\n \t\t.help = \"source field bit offset\",\ndiff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 25b57bf86d..cd38f0de46 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2937,6 +2937,14 @@ as well as any tag element in the tag array:\n For the tag array (in case of multiple tags are supported and present)\n ``level`` translates directly into the array index.\n \n+``type`` is used to specify (along with ``class_id``) the Geneve option which\n+is being modified.\n+This field is relevant only for ``RTE_FLOW_FIELD_GENEVE_OPT_XXXX`` type.\n+\n+``class_id`` is used to specify (along with ``type``) the Geneve option which\n+is being modified.\n+This field is relevant only for ``RTE_FLOW_FIELD_GENEVE_OPT_XXXX`` type.\n+\n ``flex_handle`` is used to specify the flex item pointer which is being\n modified. ``flex_handle`` and ``level`` are mutually exclusive.\n \n@@ -2994,6 +3002,10 @@ value as sequence of bytes {xxx, xxx, 0x85, xxx, xxx, xxx}.\n    +-----------------+----------------------------------------------------------+\n    | ``level``       | encapsulation level of a packet field or tag array index |\n    +-----------------+----------------------------------------------------------+\n+   | ``type``        | geneve option type                                       |\n+   +-----------------+----------------------------------------------------------+\n+   | ``class_id``    | geneve option class ID                                   |\n+   +-----------------+----------------------------------------------------------+\n    | ``flex_handle`` | flex item handle of a packet field                       |\n    +-----------------+----------------------------------------------------------+\n    | ``offset``      | number of bits to skip at the beginning                  |\ndiff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes/release_23_07.rst\nindex a9b1293689..ce1755096f 100644\n--- a/doc/guides/rel_notes/release_23_07.rst\n+++ b/doc/guides/rel_notes/release_23_07.rst\n@@ -84,6 +84,9 @@ API Changes\n    Also, make sure to start the actual text at the margin.\n    =======================================================\n \n+* The ``level`` field in experimental structure\n+  ``struct rte_flow_action_modify_data`` was reduced to 8 bits.\n+\n \n ABI Changes\n -----------\ndiff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex 713ba8b65c..b82eb0c0a8 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -3773,6 +3773,9 @@ enum rte_flow_field_id {\n \tRTE_FLOW_FIELD_IPV6_PROTO,\t/**< IPv6 next header. */\n \tRTE_FLOW_FIELD_FLEX_ITEM,\t/**< Flex item. */\n \tRTE_FLOW_FIELD_HASH_RESULT,\t/**< Hash result. */\n+\tRTE_FLOW_FIELD_GENEVE_OPT_TYPE,\t/**< GENEVE option type */\n+\tRTE_FLOW_FIELD_GENEVE_OPT_CLASS,/**< GENEVE option class */\n+\tRTE_FLOW_FIELD_GENEVE_OPT_DATA\t/**< GENEVE option data */\n };\n \n /**\n@@ -3788,7 +3791,53 @@ struct rte_flow_action_modify_data {\n \t\tstruct {\n \t\t\t/** Encapsulation level or tag index or flex item handle. */\n \t\t\tunion {\n-\t\t\t\tuint32_t level;\n+\t\t\t\tstruct {\n+\t\t\t\t\t/**\n+\t\t\t\t\t * Packet encapsulation level containing\n+\t\t\t\t\t * the field modify to.\n+\t\t\t\t\t *\n+\t\t\t\t\t * - @p 0 requests the default behavior.\n+\t\t\t\t\t *   Depending on the packet type, it\n+\t\t\t\t\t *   can mean outermost, innermost or\n+\t\t\t\t\t *   anything in between.\n+\t\t\t\t\t *\n+\t\t\t\t\t *   It basically stands for the\n+\t\t\t\t\t *   innermost encapsulation level\n+\t\t\t\t\t *   modification can be performed on\n+\t\t\t\t\t *   according to PMD and device\n+\t\t\t\t\t *   capabilities.\n+\t\t\t\t\t *\n+\t\t\t\t\t * - @p 1 requests modification to be\n+\t\t\t\t\t *   performed on the outermost packet\n+\t\t\t\t\t *   encapsulation level.\n+\t\t\t\t\t *\n+\t\t\t\t\t * - @p 2 and subsequent values request\n+\t\t\t\t\t *   modification to be performed on\n+\t\t\t\t\t *   the specified inner packet\n+\t\t\t\t\t *   encapsulation level, from\n+\t\t\t\t\t *   outermost to innermost (lower to\n+\t\t\t\t\t *   higher values).\n+\t\t\t\t\t *\n+\t\t\t\t\t * Values other than @p 0 are not\n+\t\t\t\t\t * necessarily supported.\n+\t\t\t\t\t *\n+\t\t\t\t\t * For RTE_FLOW_FIELD_TAG it represents\n+\t\t\t\t\t * the tag element in the tag array.\n+\t\t\t\t\t */\n+\t\t\t\t\tuint8_t level;\n+\t\t\t\t\t/**\n+\t\t\t\t\t * Geneve option type. relevant only\n+\t\t\t\t\t * for RTE_FLOW_FIELD_GENEVE_OPT_XXXX\n+\t\t\t\t\t * modification type.\n+\t\t\t\t\t */\n+\t\t\t\t\tuint8_t type;\n+\t\t\t\t\t/**\n+\t\t\t\t\t * Geneve option class. relevant only\n+\t\t\t\t\t * for RTE_FLOW_FIELD_GENEVE_OPT_XXXX\n+\t\t\t\t\t * modification type.\n+\t\t\t\t\t */\n+\t\t\t\t\trte_be16_t class_id;\n+\t\t\t\t};\n \t\t\t\tstruct rte_flow_item_flex_handle *flex_handle;\n \t\t\t};\n \t\t\t/** Number of bits to skip from a field. */\n",
    "prefixes": [
        "v1",
        "5/7"
    ]
}