get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85237,
    "url": "https://patches.dpdk.org/api/patches/85237/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1608123735-3662-2-git-send-email-shirik@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": "<1608123735-3662-2-git-send-email-shirik@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1608123735-3662-2-git-send-email-shirik@nvidia.com",
    "date": "2020-12-16T13:02:08",
    "name": "[RFC,v3,1/8] lib/librte_ethdev: introduce GENEVE header TLV option item",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2cce57f62a0016997e4d05942f88270617862656",
    "submitter": {
        "id": 1894,
        "url": "https://patches.dpdk.org/api/people/1894/?format=api",
        "name": "Shiri Kuzin",
        "email": "shirik@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/1608123735-3662-2-git-send-email-shirik@nvidia.com/mbox/",
    "series": [
        {
            "id": 14330,
            "url": "https://patches.dpdk.org/api/series/14330/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14330",
            "date": "2020-12-16T13:02:07",
            "name": "ethdev: introduce GENEVE header TLV option item",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/14330/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/85237/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/85237/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2E2FCA09EF;\n\tWed, 16 Dec 2020 14:03:29 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D2FD8C9D2;\n\tWed, 16 Dec 2020 14:02:52 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id D7795C9C4\n for <dev@dpdk.org>; Wed, 16 Dec 2020 14:02:49 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n shirik@nvidia.com) with SMTP; 16 Dec 2020 15:02:46 +0200",
            "from nvidia.com (nps-server-11.mtl.labs.mlnx [10.7.12.71])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0BGD2M1A011463;\n Wed, 16 Dec 2020 15:02:41 +0200"
        ],
        "From": "Shiri Kuzin <shirik@nvidia.com>",
        "To": "dev@dpdk.org",
        "Cc": "viacheslavo@nvidia.com, adrien.mazarguil@6wind.com, rasland@nvidia.com",
        "Date": "Wed, 16 Dec 2020 15:02:08 +0200",
        "Message-Id": "<1608123735-3662-2-git-send-email-shirik@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1608123735-3662-1-git-send-email-shirik@nvidia.com>",
        "References": "<1599118768-13265-1-git-send-email-shirik@nvidia.com>\n <1608123735-3662-1-git-send-email-shirik@nvidia.com>",
        "Subject": "[dpdk-dev] [RFC v3 1/8] lib/librte_ethdev: introduce GENEVE header\n\tTLV option item",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "The Geneve tunneling protocol is designed to allow the\nuser to specify some data context on the packet.\nThe GENEVE TLV (Type-Length-Variable) Option\nis the mean intended to present the user data.\n\nIn order to support GENEVE TLV Option the new rte_flow\nitem \"rte_flow_item_geneve_opt\" is added.\nThe new item contains the values and masks for the\nfollowing fields:\n-option class\n-option type\n-length\n-data\n\nNew item will be added to testpmd to support match and\nraw encap/decap actions.\n\nSigned-off-by: Shiri Kuzin <shirik@nvidia.com>\n---\n lib/librte_ethdev/rte_flow.c |  1 +\n lib/librte_ethdev/rte_flow.h | 33 +++++++++++++++++++++++++++++++++\n 2 files changed, 34 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c\nindex a06f64c..2af7d96 100644\n--- a/lib/librte_ethdev/rte_flow.c\n+++ b/lib/librte_ethdev/rte_flow.c\n@@ -97,6 +97,7 @@ struct rte_flow_desc_data {\n \tMK_FLOW_ITEM(L2TPV3OIP, sizeof(struct rte_flow_item_l2tpv3oip)),\n \tMK_FLOW_ITEM(PFCP, sizeof(struct rte_flow_item_pfcp)),\n \tMK_FLOW_ITEM(ECPRI, sizeof(struct rte_flow_item_ecpri)),\n+\tMK_FLOW_ITEM(GENEVE_OPT, sizeof(struct rte_flow_item_geneve_opt)),\n };\n \n /** Generate flow_action[] entry. */\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex 0977a78..e17a630 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -543,6 +543,14 @@ enum rte_flow_item_type {\n \t * See struct rte_flow_item_ipv6_frag_ext.\n \t */\n \tRTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT,\n+\n+\t/**\n+\t * Matches Geneve Variable Length Option\n+\t *\n+\t * See struct rte_flow_item_geneve_opt\n+\t */\n+\tRTE_FLOW_ITEM_TYPE_GENEVE_OPT,\n+\n };\n \n /**\n@@ -1626,7 +1634,32 @@ struct rte_flow_item_ecpri {\n \t},\n };\n #endif\n+#ifdef PEDANTIC\n+#pragma GCC diagnostic ignored \"-Wpedantic\"\n+#endif\n+/**\n+ * RTE_FLOW_ITEM_TYPE_GENEVE_OPT\n+ *\n+ * Matches a GENEVE Variable Length Option\n+ */\n+RTE_STD_C11\n+struct rte_flow_item_geneve_opt {\n+\trte_be16_t option_class;\n+\tuint8_t option_type;\n+\tuint8_t option_len;\n+\tuint32_t *data;\n+};\n+#ifdef PEDANTIC\n+#pragma GCC diagnostic ignored \"-Wpedantic\"\n+#endif\n \n+/** Default mask for RTE_FLOW_ITEM_TYPE_GENEVE_OPT. */\n+#ifndef __cplusplus\n+static const struct rte_flow_item_geneve_opt\n+rte_flow_item_geneve_opt_mask = {\n+\t.option_type = 0xff,\n+};\n+#endif\n /**\n  * Matching pattern item definition.\n  *\n",
    "prefixes": [
        "RFC",
        "v3",
        "1/8"
    ]
}