get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 89764,
    "url": "http://patches.dpdk.org/api/patches/89764/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210324150439.9247-6-akozyrev@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20210324150439.9247-6-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210324150439.9247-6-akozyrev@nvidia.com",
    "date": "2021-03-24T15:04:38",
    "name": "[v2,5/6] doc: add list of supported Field IDs to modify",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "79f44ce61b76584914a4922b2dcbde448ebedfb0",
    "submitter": {
        "id": 1873,
        "url": "http://patches.dpdk.org/api/people/1873/?format=api",
        "name": "Alexander Kozyrev",
        "email": "akozyrev@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210324150439.9247-6-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 15857,
            "url": "http://patches.dpdk.org/api/series/15857/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=15857",
            "date": "2021-03-24T15:04:34",
            "name": "modify field action enhancements",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/15857/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/89764/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/89764/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 79C56A0A02;\n\tWed, 24 Mar 2021 16:05:19 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 83FF4140F03;\n\tWed, 24 Mar 2021 16:04:54 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 81F60140ED1\n for <dev@dpdk.org>; Wed, 24 Mar 2021 16:04:47 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n akozyrev@nvidia.com) with SMTP; 24 Mar 2021 17:04:42 +0200",
            "from nvidia.com (pegasus02.mtr.labs.mlnx [10.210.16.122])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 12OF4fhL002053;\n Wed, 24 Mar 2021 17:04:41 +0200"
        ],
        "From": "Alexander Kozyrev <akozyrev@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "rasland@nvidia.com, viacheslavo@nvidia.com, matan@nvidia.com,\n orika@nvidia.com",
        "Date": "Wed, 24 Mar 2021 15:04:38 +0000",
        "Message-Id": "<20210324150439.9247-6-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.24.1",
        "In-Reply-To": "<20210324150439.9247-1-akozyrev@nvidia.com>",
        "References": "<20210324150439.9247-1-akozyrev@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 5/6] doc: add list of supported Field IDs to\n modify",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Include the rte_flow_field_id enumeration into the\ndocumentation to provide the full list of all supported\nField IDs available for the MODIFY_FIELD RTE action.\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\n---\n doc/guides/prog_guide/rte_flow.rst | 45 ++++++++++++++++++++++++++++--\n 1 file changed, 43 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 62a57919eb..4265b7bfb8 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2784,6 +2784,41 @@ can be used as both source and destination fields as set by ``field``.\n The immediate value ``RTE_FLOW_FIELD_VALUE`` (or a pointer to it\n ``RTE_FLOW_FIELD_POINTER``) is allowed as a source only.\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+.. code-block:: c\n+\n+   enum rte_flow_field_id {\n+        RTE_FLOW_FIELD_START = 0,       /**< Start of a packet. */\n+        RTE_FLOW_FIELD_MAC_DST,         /**< Destination MAC Address. */\n+        RTE_FLOW_FIELD_MAC_SRC,         /**< Source MAC Address. */\n+        RTE_FLOW_FIELD_VLAN_TYPE,       /**< 802.1Q Tag Identifier. */\n+        RTE_FLOW_FIELD_VLAN_ID,         /**< 802.1Q VLAN Identifier. */\n+        RTE_FLOW_FIELD_MAC_TYPE,        /**< EtherType. */\n+        RTE_FLOW_FIELD_IPV4_DSCP,       /**< IPv4 DSCP. */\n+        RTE_FLOW_FIELD_IPV4_TTL,        /**< IPv4 Time To Live. */\n+        RTE_FLOW_FIELD_IPV4_SRC,        /**< IPv4 Source Address. */\n+        RTE_FLOW_FIELD_IPV4_DST,        /**< IPv4 Destination Address. */\n+        RTE_FLOW_FIELD_IPV6_DSCP,       /**< IPv6 DSCP. */\n+        RTE_FLOW_FIELD_IPV6_HOPLIMIT,   /**< IPv6 Hop Limit. */\n+        RTE_FLOW_FIELD_IPV6_SRC,        /**< IPv6 Source Address. */\n+        RTE_FLOW_FIELD_IPV6_DST,        /**< IPv6 Destination Address. */\n+        RTE_FLOW_FIELD_TCP_PORT_SRC,    /**< TCP Source Port Number. */\n+        RTE_FLOW_FIELD_TCP_PORT_DST,    /**< TCP Destination Port Number. */\n+        RTE_FLOW_FIELD_TCP_SEQ_NUM,     /**< TCP Sequence Number. */\n+        RTE_FLOW_FIELD_TCP_ACK_NUM,     /**< TCP Acknowledgment Number. */\n+        RTE_FLOW_FIELD_TCP_FLAGS,       /**< TCP Flags. */\n+        RTE_FLOW_FIELD_UDP_PORT_SRC,    /**< UDP Source Port Number. */\n+        RTE_FLOW_FIELD_UDP_PORT_DST,    /**< UDP Destination Port Number. */\n+        RTE_FLOW_FIELD_VXLAN_VNI,       /**< VXLAN Network Identifier. */\n+        RTE_FLOW_FIELD_GENEVE_VNI,      /**< GENEVE Network Identifier. */\n+        RTE_FLOW_FIELD_GTP_TEID,        /**< GTP Tunnel Endpoint Identifier. */\n+        RTE_FLOW_FIELD_TAG,             /**< Tag value. */\n+        RTE_FLOW_FIELD_MARK,            /**< Mark value. */\n+        RTE_FLOW_FIELD_META,            /**< Metadata value. */\n+        RTE_FLOW_FIELD_POINTER,         /**< Memory pointer. */\n+        RTE_FLOW_FIELD_VALUE,           /**< Immediate value. */\n+   };\n \n ``op`` selects the operation to perform on a destination field.\n - ``set`` copies the data from ``src`` field to ``dst`` field.\n@@ -2817,12 +2852,15 @@ for ``RTE_FLOW_FIELD_VALUE`` and ``RTE_FLOW_FIELD_POINTER`` respectively.\n \n .. table:: MODIFY_FIELD\n \n-   +-----------------------------------------+\n+   +---------------+-------------------------+\n    | Field         | Value                   |\n    +===============+=========================+\n    | ``op``        | operation to perform    |\n+   +---------------+-------------------------+\n    | ``dst``       | destination field       |\n+   +---------------+-------------------------+\n    | ``src``       | source field            |\n+   +---------------+-------------------------+\n    | ``width``     | number of bits to use   |\n    +---------------+-------------------------+\n \n@@ -2830,12 +2868,15 @@ for ``RTE_FLOW_FIELD_VALUE`` and ``RTE_FLOW_FIELD_POINTER`` respectively.\n \n .. table:: destination/source field definition\n \n-   +--------------------------------------------------------------------------+\n+   +---------------+----------------------------------------------------------+\n    | Field         | Value                                                    |\n    +===============+==========================================================+\n    | ``field``     | ID: packet field, mark, meta, tag, immediate, pointer    |\n+   +---------------+----------------------------------------------------------+\n    | ``level``     | encapsulation level of a packet field or tag array index |\n+   +---------------+----------------------------------------------------------+\n    | ``offset``    | number of bits to skip at the beginning                  |\n+   +---------------+----------------------------------------------------------+\n    | ``value``     | immediate value or a pointer to this value               |\n    +---------------+----------------------------------------------------------+\n \n",
    "prefixes": [
        "v2",
        "5/6"
    ]
}