get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 126305,
    "url": "https://patches.dpdk.org/api/patches/126305/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230420092145.522389-2-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": "<20230420092145.522389-2-michaelba@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230420092145.522389-2-michaelba@nvidia.com",
    "date": "2023-04-20T09:21:44",
    "name": "[RFC,1/2] ethdev: add GENEVE TLV option modification support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6e8b6ae99efb65b4b38463ca4fc55bbbcd72c983",
    "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/20230420092145.522389-2-michaelba@nvidia.com/mbox/",
    "series": [
        {
            "id": 27795,
            "url": "https://patches.dpdk.org/api/series/27795/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27795",
            "date": "2023-04-20T09:21:43",
            "name": "ethdev: extend modify field API",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/27795/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/126305/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/126305/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 3121242995;\n\tThu, 20 Apr 2023 11:22:15 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C52CD42BD9;\n\tThu, 20 Apr 2023 11:22:10 +0200 (CEST)",
            "from NAM11-CO1-obe.outbound.protection.outlook.com\n (mail-co1nam11on2062.outbound.protection.outlook.com [40.107.220.62])\n by mails.dpdk.org (Postfix) with ESMTP id 89BCD40687\n for <dev@dpdk.org>; Thu, 20 Apr 2023 11:22:08 +0200 (CEST)",
            "from BN9PR03CA0749.namprd03.prod.outlook.com (2603:10b6:408:110::34)\n by SJ0PR12MB7081.namprd12.prod.outlook.com (2603:10b6:a03:4ae::17)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.20; Thu, 20 Apr\n 2023 09:22:06 +0000",
            "from BN8NAM11FT043.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:110:cafe::33) by BN9PR03CA0749.outlook.office365.com\n (2603:10b6:408:110::34) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.25 via Frontend\n Transport; Thu, 20 Apr 2023 09:22:05 +0000",
            "from mail.nvidia.com (216.228.117.161) by\n BN8NAM11FT043.mail.protection.outlook.com (10.13.177.218) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.6319.23 via Frontend Transport; Thu, 20 Apr 2023 09:22:05 +0000",
            "from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com\n (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 20 Apr 2023\n 02:21:54 -0700",
            "from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com\n (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Thu, 20 Apr\n 2023 02:21:54 -0700",
            "from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.6) with\n 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; Thu, 20 Apr 2023 02:21:52 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=i85sZ7bn/87W9Uoy736unz4oB05E2ZG5VhosORaef5RyQyHTEjZTwrNSiV/AtxqLxU82gc/yXe9aSCrB0V027NOGtM+qaqL1uF/8/LmevlDT/nmPOhe00J9UKSNiBeES2r8FYUayB3BjbkOuDbIImrJ4VpNoNww5+Qd9CpLQBrted9GKSiu5Gmiyu9mrVdSXHYrZjhj7fAURnOfrI1Y7/nZkHTYRnMA2ZnCSiOaGJA8h3SVtjWN0AivPs3mPZL+bMGxEaSlvdWFHRGPDEXeB+apLXkvPv77ObFJV6vPlg0U90ZvQZEddh35VAoZIphTPPt3uF1urtkIGowHkJ6vXOg==",
        "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=YbZiPxFXUVD+eJKzOSjw4IZkOfwkXHjwSlFb2pfGwnA=;\n b=bykwbCFRUtpQn6frTrojyDKE6jLrjRls+yQA3Md5l/wtS0JugjlTXkGTNWnPSVfaseFy9GXLPll+YShEGn5jg+CiJcrBIh/4nQqlymKxeaGmCu+555JttHIvc/5WeVBav/iCt44fdtlhdcXAS3NT/H4kzGRzlLT6xXefSN7vhdTPre9O2ebhm+hFmQKlKa/9GiS8oms6nJqK6UbmDtTVpCrVGiOY2Tj8IDXZTxLA/dwZRQvuWDfe8iNHQwnwO5q8tKgWWN5DfQNkxUVF7KUuufhK6657vYX4bWSkHZ3xKNzMCob+XQhMTaCZD7ft2ml+Jl4z0tKr38kzoeMl0z7H4A==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.161) 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=YbZiPxFXUVD+eJKzOSjw4IZkOfwkXHjwSlFb2pfGwnA=;\n b=sG/WAbMJKPZMMsoyJLrGJiMReFx6TbwcrhYoOLZAm7gpOkOo3mbOGTEy0tfBSlJA968KdUOal3mKDYAyqXaWnXcdosAKo6ZHWjNKOkFaS6BNPdgEz98XRuAl0q8eZcAzl04u3WW0YpHE4KqkISr5sa5jErGXkFy5fIYcQ4fJ05MeNVjtiQVxvqpl+rjADr/jbSDr4YYFUW8qMjSiU+Zm6Pa7FaKXpmahHp8DjymByahq1Zz6T/xVcHnbQG2yy9nvQUnmZn4hgt+kJrzptfG4QaOsSQYr5AIiVvelB+U1fNwMl07EHPfEqBzy+onH3Y5G4MPdBrUVlIi2DGpVvRgfSw==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.161)\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.117.161 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.161; 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": "[RFC 1/2] ethdev: add GENEVE TLV option modification support",
        "Date": "Thu, 20 Apr 2023 12:21:44 +0300",
        "Message-ID": "<20230420092145.522389-2-michaelba@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230420092145.522389-1-michaelba@nvidia.com>",
        "References": "<20230420092145.522389-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": "BN8NAM11FT043:EE_|SJ0PR12MB7081:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "14427f98-524f-4fd0-4074-08db4180b53d",
        "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 pAGYmkD7S+FQfSMNfZE1hRhzGNYfM4VvFTBo7Daq9MhaLczctMZ7oEN8GBAMi536DR+LKsP0BWy1N96106Jc/ntlxRcJhcUesWUebTZdsPGwtFWWUGlgBVbg4iSkb19ygP/MPaYltncEJoSo9d3dTYZzXw21msG122sQ+6pQ6NoBwH/dgjMQ1gGcSseKRrSfBMMkMjybzWxHxLMOzQ2SYAzZNfq2Pml9wp9ydPfUzGBji8yhXuj4IpEGER2QKD9SuGn5GykCyzh1/poej1WYyXy8iFIAZUvrA6wqHqZIRuUWHPBuwfeBz+8rKXWdzAIDGVBY+cW9gq1noVAjILFo/kN3/ikw3FnQDBTLgFV+3VdJiXPjRZ5k6u+/Jf9+vIEAxK3a1xmxnLdga6Q9z+VNN3klgzrTQruk8WQEQ8MMX9MB+WYyJMBNkHGnIdFDx+Hj8DAIGQ/5CqUNXVief10ydF9ID40j6j2IllG6lzopDDW4iva7tzBjzVC5ZDdIG9Gxk4vhhm6UxilGD3mfizqf9yUfQvfWPukB1X528TvjCmH+JFY6OQ+0XbbDHdeSFKm1ayoXXz+yIELrYdqqr/Qm0YcDIGD4FffR6noKo66Y7x59cso3PdAUsVk5HLB1NIqoTUXLAyW9Kfcbmie5D1A5DxnLlaP3dw1/gF8ATHB5FIF0NE2zQ9ojAIl4qZmEJ6H2u9htslB1MEXPH11p960Xm67RscqeV/7tOnDatbAr0EoFUEHUXzvnChDOXQDtFtfw8g7F1QMICkThqjcvlT7CXoisrXtmzkppJq0TBoVbkWS+Z7hNRCH63dN0EPD1Fx4g",
        "X-Forefront-Antispam-Report": "CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE;\n SFS:(13230028)(4636009)(346002)(39860400002)(136003)(396003)(376002)(451199021)(36840700001)(46966006)(40470700004)(5660300002)(40480700001)(55016003)(40460700003)(316002)(41300700001)(4326008)(6916009)(70586007)(70206006)(478600001)(54906003)(8936002)(82740400003)(8676002)(356005)(7636003)(47076005)(186003)(36860700001)(336012)(426003)(83380400001)(6286002)(2616005)(7696005)(34020700004)(6666004)(1076003)(26005)(86362001)(36756003)(82310400005)(2906002)(21314003);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "20 Apr 2023 09:22:05.3335 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 14427f98-524f-4fd0-4074-08db4180b53d",
        "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.117.161];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT043.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SJ0PR12MB7081",
        "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        | 47 ++++++++++++++++++++++++++-\n doc/guides/prog_guide/rte_flow.rst | 27 +++++++++++++---\n lib/ethdev/rte_flow.h              | 51 +++++++++++++++++++++++++++++-\n 3 files changed, 118 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 58939ec321..db8bd30cb1 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,8 @@ 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\", NULL\n };\n \n static const char *const meter_colors[] = {\n@@ -2295,6 +2300,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 +2309,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 +6397,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(struct rte_flow_action_modify_field,\n+\t\t\t\t\tdst.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 +6450,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(struct rte_flow_action_modify_field,\n+\t\t\t\t\tsrc.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 32fc45516a..dc86e040ec 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2917,23 +2917,36 @@ The immediate value ``RTE_FLOW_FIELD_VALUE`` (or a pointer to it\n ``RTE_FLOW_FIELD_START`` is used to point to the beginning of a packet.\n See ``enum rte_flow_field_id`` for the list of supported fields.\n \n-``op`` selects the operation to perform on a destination field.\n+``op`` selects the operation to perform on a destination field:\n+\n - ``set`` copies the data from ``src`` field to ``dst`` field.\n - ``add`` adds together ``dst`` and ``src`` and stores the result into ``dst``.\n-- ``sub`` subtracts ``src`` from ``dst`` and stores the result into ``dst``\n+- ``sub`` subtracts ``src`` from ``dst`` and stores the result into ``dst``.\n \n ``width`` defines a number of bits to use from ``src`` field.\n \n ``level`` is used to access any packet field on any encapsulation level\n-as well as any tag element in the tag array.\n+as well as any tag element in the tag array:\n+\n - ``0`` means the default behaviour. Depending on the packet type, it can\n-mean outermost, innermost or anything in between.\n+  mean outermost, innermost or anything in between.\n+\n - ``1`` requests access to the outermost packet encapsulation level.\n+\n - ``2`` and subsequent values requests access to the specified packet\n-encapsulation level, from outermost to innermost (lower to higher values).\n+  encapsulation level, from outermost to innermost (lower to higher values).\n+\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@@ -2991,6 +3004,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/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": [
        "RFC",
        "1/2"
    ]
}