get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87685,
    "url": "http://patchwork.dpdk.org/api/patches/87685/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1612355037-48768-6-git-send-email-oulijun@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1612355037-48768-6-git-send-email-oulijun@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1612355037-48768-6-git-send-email-oulijun@huawei.com",
    "date": "2021-02-03T12:23:51",
    "name": "[05/11] net/hns3: remove MPLS type from supported flow items",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0e41ab07234354d8a23c9344ada495ddb40572f6",
    "submitter": {
        "id": 1675,
        "url": "http://patchwork.dpdk.org/api/people/1675/?format=api",
        "name": "Lijun Ou",
        "email": "oulijun@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1612355037-48768-6-git-send-email-oulijun@huawei.com/mbox/",
    "series": [
        {
            "id": 15123,
            "url": "http://patchwork.dpdk.org/api/series/15123/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=15123",
            "date": "2021-02-03T12:23:47",
            "name": "critical bugfixes for hns3",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/15123/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/87685/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/87685/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 4CA00A0A0E;\n\tWed,  3 Feb 2021 13:25:27 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F1E1424056E;\n\tWed,  3 Feb 2021 13:24:36 +0100 (CET)",
            "from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by mails.dpdk.org (Postfix) with ESMTP id 3DBF424052C\n for <dev@dpdk.org>; Wed,  3 Feb 2021 13:24:30 +0100 (CET)",
            "from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DW1706BH8zjGyT;\n Wed,  3 Feb 2021 20:23:24 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id\n 14.3.498.0; Wed, 3 Feb 2021 20:24:23 +0800"
        ],
        "From": "Lijun Ou <oulijun@huawei.com>",
        "To": "<ferruh.yigit@intel.com>",
        "CC": "<dev@dpdk.org>, <linuxarm@openeuler.org>",
        "Date": "Wed, 3 Feb 2021 20:23:51 +0800",
        "Message-ID": "<1612355037-48768-6-git-send-email-oulijun@huawei.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1612355037-48768-1-git-send-email-oulijun@huawei.com>",
        "References": "<1612355037-48768-1-git-send-email-oulijun@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.69.192.56]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev] [PATCH 05/11] net/hns3: remove MPLS type from supported\n flow items",
        "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": "From: Chengwen Feng <fengchengwen@huawei.com>\n\nThe Kunpeng920 and Kunpeng930 don't support parse MPLS packet, so\nremove the type from supported flow items.\n\nFixes: fcba820d9b9e (\"net/hns3: support flow director\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Lijun Ou <oulijun@huawei.com>\n---\n drivers/net/hns3/hns3_flow.c | 9 +++------\n 1 file changed, 3 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c\nindex a601124..c484114 100644\n--- a/drivers/net/hns3/hns3_flow.c\n+++ b/drivers/net/hns3/hns3_flow.c\n@@ -44,8 +44,7 @@ static enum rte_flow_item_type first_items[] = {\n \tRTE_FLOW_ITEM_TYPE_NVGRE,\n \tRTE_FLOW_ITEM_TYPE_VXLAN,\n \tRTE_FLOW_ITEM_TYPE_GENEVE,\n-\tRTE_FLOW_ITEM_TYPE_VXLAN_GPE,\n-\tRTE_FLOW_ITEM_TYPE_MPLS\n+\tRTE_FLOW_ITEM_TYPE_VXLAN_GPE\n };\n \n static enum rte_flow_item_type L2_next_items[] = {\n@@ -65,8 +64,7 @@ static enum rte_flow_item_type L3_next_items[] = {\n static enum rte_flow_item_type L4_next_items[] = {\n \tRTE_FLOW_ITEM_TYPE_VXLAN,\n \tRTE_FLOW_ITEM_TYPE_GENEVE,\n-\tRTE_FLOW_ITEM_TYPE_VXLAN_GPE,\n-\tRTE_FLOW_ITEM_TYPE_MPLS\n+\tRTE_FLOW_ITEM_TYPE_VXLAN_GPE\n };\n \n static enum rte_flow_item_type tunnel_next_items[] = {\n@@ -1118,8 +1116,7 @@ is_tunnel_packet(enum rte_flow_item_type type)\n \tif (type == RTE_FLOW_ITEM_TYPE_VXLAN_GPE ||\n \t    type == RTE_FLOW_ITEM_TYPE_VXLAN ||\n \t    type == RTE_FLOW_ITEM_TYPE_NVGRE ||\n-\t    type == RTE_FLOW_ITEM_TYPE_GENEVE ||\n-\t    type == RTE_FLOW_ITEM_TYPE_MPLS)\n+\t    type == RTE_FLOW_ITEM_TYPE_GENEVE)\n \t\treturn true;\n \treturn false;\n }\n",
    "prefixes": [
        "05/11"
    ]
}