get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55252,
    "url": "http://patches.dpdk.org/api/patches/55252/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190624154018.128379-5-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": "<20190624154018.128379-5-jackmin@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190624154018.128379-5-jackmin@mellanox.com",
    "date": "2019-06-24T15:40:18",
    "name": "[4/4] app/testpmd: match GRE's key and present bits",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7a60c6308fb7c1489505186af033894f8f5cdd12",
    "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/20190624154018.128379-5-jackmin@mellanox.com/mbox/",
    "series": [
        {
            "id": 5134,
            "url": "http://patches.dpdk.org/api/series/5134/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5134",
            "date": "2019-06-24T15:40:14",
            "name": "ethdev: add GRE key field to flow API",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5134/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55252/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55252/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 B36521BD64;\n\tMon, 24 Jun 2019 17:40:33 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n\tby dpdk.org (Postfix) with ESMTP id D91331BCD2\n\tfor <dev@dpdk.org>; Mon, 24 Jun 2019 17:40:27 +0200 (CEST)"
        ],
        "From": "Xiaoyu Min <jackmin@mellanox.com>",
        "To": "Adrien Mazarguil <adrien.mazarguil@6wind.com>,\n\tWenzhuo Lu <wenzhuo.lu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>,\n\tBernard Iremonger <bernard.iremonger@intel.com>,\n\tJohn McNamara <john.mcnamara@intel.com>,\n\tMarko Kovacevic <marko.kovacevic@intel.com>",
        "Cc": "dev@dpdk.org",
        "Date": "Mon, 24 Jun 2019 23:40:18 +0800",
        "Message-Id": "<20190624154018.128379-5-jackmin@mellanox.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190624154018.128379-1-jackmin@mellanox.com>",
        "References": "<20190624154018.128379-1-jackmin@mellanox.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 4/4] app/testpmd: match GRE's key and present bits",
        "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": "support matching on GRE key and present bits (C,K,S)\n\nexample testpmd command could be:\n  testpmd>flow create 0 ingress group 1 pattern eth / ipv4 /\n          gre crksv is 0x2000 crksv mask 0xb000 /\n\t  gre_key key is 0x12345678 / end\n\t  actions rss queues 1 0 end / mark id 196 / end\n\nWhich will match GRE packet with k present bit set and key value is\n0x12345678.\n\nSigned-off-by: Xiaoyu Min <jackmin@mellanox.com>\n---\n app/test-pmd/cmdline_flow.c                 | 33 +++++++++++++++++++++\n doc/guides/testpmd_app_ug/testpmd_funcs.rst |  4 +++\n 2 files changed, 37 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 201bd9de56..c8e0785a41 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -148,6 +148,9 @@ enum index {\n \tITEM_MPLS_LABEL,\n \tITEM_GRE,\n \tITEM_GRE_PROTO,\n+\tITEM_GRE_CRKSV,\n+\tITEM_GRE_KEY,\n+\tITEM_GRE_KEY_KEY,\n \tITEM_FUZZY,\n \tITEM_FUZZY_THRESH,\n \tITEM_GTP,\n@@ -595,6 +598,7 @@ static const enum index next_item[] = {\n \tITEM_NVGRE,\n \tITEM_MPLS,\n \tITEM_GRE,\n+\tITEM_GRE_KEY,\n \tITEM_FUZZY,\n \tITEM_GTP,\n \tITEM_GTPC,\n@@ -755,6 +759,13 @@ static const enum index item_mpls[] = {\n \n static const enum index item_gre[] = {\n \tITEM_GRE_PROTO,\n+\tITEM_GRE_CRKSV,\n+\tITEM_NEXT,\n+\tZERO,\n+};\n+\n+static const enum index item_gre_key[] = {\n+\tITEM_GRE_KEY_KEY,\n \tITEM_NEXT,\n \tZERO,\n };\n@@ -1898,6 +1909,28 @@ static const struct token token_list[] = {\n \t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gre,\n \t\t\t\t\t     protocol)),\n \t},\n+\t[ITEM_GRE_CRKSV] = {\n+\t\t.name = \"crksv\",\n+\t\t.help = \"GRE's first word (bit0 - bit15)\",\n+\t\t.next = NEXT(item_gre, NEXT_ENTRY(UNSIGNED), item_param),\n+\t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gre,\n+\t\t\t\t\t     c_rsvd0_ver)),\n+\t},\n+\t[ITEM_GRE_KEY] = {\n+\t\t.name = \"gre_key\",\n+\t\t.help = \"match GRE Key\",\n+\t\t.priv = PRIV_ITEM(GRE_KEY,\n+\t\t\t\t  sizeof(struct rte_flow_item_gre_key)),\n+\t\t.next = NEXT(item_gre_key),\n+\t\t.call = parse_vc,\n+\t},\n+\t[ITEM_GRE_KEY_KEY] = {\n+\t\t.name = \"key\",\n+\t\t.help = \"GRE key\",\n+\t\t.next = NEXT(item_gre_key, NEXT_ENTRY(UNSIGNED), item_param),\n+\t\t.args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gre_key,\n+\t\t\t\t\t     key)),\n+\t},\n \t[ITEM_FUZZY] = {\n \t\t.name = \"fuzzy\",\n \t\t.help = \"fuzzy pattern match, expect faster than default\",\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex cb83a3ce8a..fc3ba8a009 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -3804,6 +3804,10 @@ This section lists supported pattern items and their attributes, if any.\n \n   - ``protocol {unsigned}``: protocol type.\n \n+- ``gre_key``: match GRE optional key field.\n+\n+  - ``key {unsigned}``: key value.\n+\n - ``fuzzy``: fuzzy pattern match, expect faster than default.\n \n   - ``thresh {unsigned}``: accuracy threshold.\n",
    "prefixes": [
        "4/4"
    ]
}