get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 56099,
    "url": "http://patches.dpdk.org/api/patches/56099/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/ff2873b552a885f4bf95a2acf0524c8b9ae62c56.1562257159.git.jackmin@mellanox.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": "<ff2873b552a885f4bf95a2acf0524c8b9ae62c56.1562257159.git.jackmin@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/ff2873b552a885f4bf95a2acf0524c8b9ae62c56.1562257159.git.jackmin@mellanox.com",
    "date": "2019-07-04T16:30:11",
    "name": "[v5,1/4] ethdev: add GRE key field to flow API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "42a0e6c4a3f04c2a14d838ef4a760a0b55610cca",
    "submitter": {
        "id": 1065,
        "url": "http://patches.dpdk.org/api/people/1065/?format=api",
        "name": "Xiaoyu Min",
        "email": "jackmin@mellanox.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/ff2873b552a885f4bf95a2acf0524c8b9ae62c56.1562257159.git.jackmin@mellanox.com/mbox/",
    "series": [
        {
            "id": 5343,
            "url": "http://patches.dpdk.org/api/series/5343/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5343",
            "date": "2019-07-04T16:30:10",
            "name": "match on GRE's key",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/5343/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/56099/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/56099/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D78E81B9A9;\n\tThu,  4 Jul 2019 18:30:25 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n\tby dpdk.org (Postfix) with ESMTP id A255F1B99F\n\tfor <dev@dpdk.org>; Thu,  4 Jul 2019 18:30:21 +0200 (CEST)"
        ],
        "From": "Xiaoyu Min <jackmin@mellanox.com>",
        "To": "adrien.mazarguil@6wind.com, orika@mellanox.com, viacheslavo@mellanox.com,\n\tJohn McNamara <john.mcnamara@intel.com>,\n\tMarko Kovacevic <marko.kovacevic@intel.com>,\n\tThomas Monjalon <thomas@monjalon.net>,\n\tFerruh Yigit <ferruh.yigit@intel.com>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>",
        "Cc": "dev@dpdk.org",
        "Date": "Fri,  5 Jul 2019 00:30:11 +0800",
        "Message-Id": "<ff2873b552a885f4bf95a2acf0524c8b9ae62c56.1562257159.git.jackmin@mellanox.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<cover.1562257159.git.jackmin@mellanox.com>",
        "References": "<20190624154018.128379-1-jackmin@mellanox.com>\n\t<cover.1562257159.git.jackmin@mellanox.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 1/4] ethdev: add GRE key field to flow API",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add new rte_flow_item_gre_key in order to match the optional key field.\n\nAcked-by: Ori Kam <orika@mellanox.com>\nSigned-off-by: Xiaoyu Min <jackmin@mellanox.com>\n---\n doc/guides/prog_guide/rte_flow.rst |  9 +++++++++\n lib/librte_ethdev/rte_flow.c       |  1 +\n lib/librte_ethdev/rte_flow.h       | 13 +++++++++++++\n 3 files changed, 23 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex a34d012e55..8072fc1664 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -980,6 +980,15 @@ Matches a GRE header.\n - ``protocol``: protocol type.\n - Default ``mask`` matches protocol only.\n \n+Item: ``GRE_KEY``\n+^^^^^^^^^^^^^^^^^\n+\n+Matches a GRE key field.\n+This should be preceded by item ``GRE``.\n+\n+- Value to be matched is a big-endian 32 bit integer.\n+- When this item present it implicitly match K bit in default mask as \"1\"\n+\n Item: ``FUZZY``\n ^^^^^^^^^^^^^^^\n \ndiff --git a/lib/librte_ethdev/rte_flow.c b/lib/librte_ethdev/rte_flow.c\nindex 5c4952242f..f617e0304f 100644\n--- a/lib/librte_ethdev/rte_flow.c\n+++ b/lib/librte_ethdev/rte_flow.c\n@@ -74,6 +74,7 @@ static const struct rte_flow_desc_data rte_flow_desc_item[] = {\n \t\t     sizeof(struct rte_flow_item_icmp6_nd_opt_tla_eth)),\n \tMK_FLOW_ITEM(MARK, sizeof(struct rte_flow_item_mark)),\n \tMK_FLOW_ITEM(META, sizeof(struct rte_flow_item_meta)),\n+\tMK_FLOW_ITEM(GRE_KEY, sizeof(rte_be32_t)),\n };\n \n /** Generate flow_action[] entry. */\ndiff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h\nindex f3a8fb103f..bdb8edee42 100644\n--- a/lib/librte_ethdev/rte_flow.h\n+++ b/lib/librte_ethdev/rte_flow.h\n@@ -421,6 +421,19 @@ enum rte_flow_item_type {\n \t * See struct rte_flow_item_meta.\n \t */\n \tRTE_FLOW_ITEM_TYPE_META,\n+\n+\t/**\n+\t * Matches a GRE optional key field.\n+\t *\n+\t * The value should a big-endian 32bit integer.\n+\t *\n+\t * When this item present the K bit is implicitly matched as \"1\"\n+\t * in the default mask.\n+\t *\n+\t * @p spec/mask type:\n+\t * @code rte_be32_t * @endcode\n+\t */\n+\tRTE_FLOW_ITEM_TYPE_GRE_KEY,\n };\n \n /**\n",
    "prefixes": [
        "v5",
        "1/4"
    ]
}