get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55247,
    "url": "http://patches.dpdk.org/api/patches/55247/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190624153736.127968-3-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": "<20190624153736.127968-3-jackmin@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190624153736.127968-3-jackmin@mellanox.com",
    "date": "2019-06-24T15:37:36",
    "name": "[2/2] app/testpmd: support MPLS's TC and S bits",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c6ef9fd39d8b35c2190a57bf305effc60e4758a8",
    "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/20190624153736.127968-3-jackmin@mellanox.com/mbox/",
    "series": [
        {
            "id": 5133,
            "url": "http://patches.dpdk.org/api/series/5133/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5133",
            "date": "2019-06-24T15:37:34",
            "name": "app/testpmd: support raw encap/decap actions",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5133/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55247/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55247/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 316D61BBD8;\n\tMon, 24 Jun 2019 17:37:48 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n\tby dpdk.org (Postfix) with ESMTP id 46A031BA42\n\tfor <dev@dpdk.org>; Mon, 24 Jun 2019 17:37:45 +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>",
        "Cc": "dev@dpdk.org",
        "Date": "Mon, 24 Jun 2019 23:37:36 +0800",
        "Message-Id": "<20190624153736.127968-3-jackmin@mellanox.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190624153736.127968-1-jackmin@mellanox.com>",
        "References": "<20190624153736.127968-1-jackmin@mellanox.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 2/2] app/testpmd: support MPLS's TC and S 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": "Open the MPLS's TC and S bits of rte_flow_item_mpls in command line.\n\nSigned-off-by: Xiaoyu Min <jackmin@mellanox.com>\n---\n app/test-pmd/cmdline_flow.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex e7da0fad2a..f3c0b7902f 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -153,6 +153,8 @@ enum index {\n \tITEM_NVGRE_TNI,\n \tITEM_MPLS,\n \tITEM_MPLS_LABEL,\n+\tITEM_MPLS_TC,\n+\tITEM_MPLS_S,\n \tITEM_GRE,\n \tITEM_GRE_PROTO,\n \tITEM_FUZZY,\n@@ -778,6 +780,8 @@ static const enum index item_nvgre[] = {\n \n static const enum index item_mpls[] = {\n \tITEM_MPLS_LABEL,\n+\tITEM_MPLS_TC,\n+\tITEM_MPLS_S,\n \tITEM_NEXT,\n \tZERO,\n };\n@@ -1937,6 +1941,22 @@ static const struct token token_list[] = {\n \t\t\t\t\t\t  label_tc_s,\n \t\t\t\t\t\t  \"\\xff\\xff\\xf0\")),\n \t},\n+\t[ITEM_MPLS_TC] = {\n+\t\t.name = \"tc\",\n+\t\t.help = \"MPLS Traffic Class\",\n+\t\t.next = NEXT(item_mpls, NEXT_ENTRY(UNSIGNED), item_param),\n+\t\t.args = ARGS(ARGS_ENTRY_MASK_HTON(struct rte_flow_item_mpls,\n+\t\t\t\t\t\t  label_tc_s,\n+\t\t\t\t\t\t  \"\\x00\\x00\\x0e\")),\n+\t},\n+\t[ITEM_MPLS_S] = {\n+\t\t.name = \"s\",\n+\t\t.help = \"MPLS Bottom-of-Stack\",\n+\t\t.next = NEXT(item_mpls, NEXT_ENTRY(UNSIGNED), item_param),\n+\t\t.args = ARGS(ARGS_ENTRY_MASK_HTON(struct rte_flow_item_mpls,\n+\t\t\t\t\t\t  label_tc_s,\n+\t\t\t\t\t\t  \"\\x00\\x00\\x01\")),\n+\t},\n \t[ITEM_GRE] = {\n \t\t.name = \"gre\",\n \t\t.help = \"match GRE header\",\n",
    "prefixes": [
        "2/2"
    ]
}