get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 63233,
    "url": "http://patches.dpdk.org/api/patches/63233/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191122120624.4963-7-xavier.huwei@tom.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": "<20191122120624.4963-7-xavier.huwei@tom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191122120624.4963-7-xavier.huwei@tom.com",
    "date": "2019-11-22T12:06:24",
    "name": "[6/6] net/hns3: fix duplicate VLAN",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "70e8db9b411610c8c9957cd795c763c2104c5828",
    "submitter": {
        "id": 1459,
        "url": "http://patches.dpdk.org/api/people/1459/?format=api",
        "name": "Wei Hu (Xavier)",
        "email": "xavier.huwei@tom.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/20191122120624.4963-7-xavier.huwei@tom.com/mbox/",
    "series": [
        {
            "id": 7586,
            "url": "http://patches.dpdk.org/api/series/7586/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7586",
            "date": "2019-11-22T12:06:18",
            "name": "Fixes for hns3 PMD driver",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/7586/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/63233/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/63233/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 7774FA04C3;\n\tFri, 22 Nov 2019 15:16:01 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 690C52BA2;\n\tFri, 22 Nov 2019 15:15:54 +0100 (CET)",
            "from smtp.tom.com (smtprz15.163.net [106.3.154.248])\n by dpdk.org (Postfix) with ESMTP id 415161DBC\n for <dev@dpdk.org>; Fri, 22 Nov 2019 13:06:35 +0100 (CET)",
            "from my-app01.tom.com (my-app01.tom.com [127.0.0.1])\n by freemail01.tom.com (Postfix) with ESMTP id D799F1C81A30\n for <dev@dpdk.org>; Fri, 22 Nov 2019 20:06:38 +0800 (CST)",
            "from my-app01.tom.com (HELO smtp.tom.com) ([127.0.0.1])\n by my-app01 (TOM SMTP Server) with SMTP ID 800360812\n for <dev@dpdk.org>; Fri, 22 Nov 2019 20:06:38 +0800 (CST)",
            "from antispam1.tom.com (unknown [172.25.16.55])\n by freemail01.tom.com (Postfix) with ESMTP id CE79D1C81A11\n for <dev@dpdk.org>; Fri, 22 Nov 2019 20:06:38 +0800 (CST)",
            "from antispam1.tom.com (antispam1.tom.com [127.0.0.1])\n by antispam1.tom.com (Postfix) with ESMTP id D2F9A10017BC\n for <dev@dpdk.org>; Fri, 22 Nov 2019 20:06:09 +0800 (CST)",
            "from antispam1.tom.com ([127.0.0.1])\n by antispam1.tom.com (antispam1.tom.com [127.0.0.1]) (amavisd-new,\n port 10024)\n with ESMTP id Rrs7USbp1C5W for <dev@dpdk.org>;\n Fri, 22 Nov 2019 20:06:09 +0800 (CST)",
            "from localhost.localdomain (unknown [203.160.91.226])\n by antispam1.tom.com (Postfix) with ESMTPA id 381DD10014BB;\n Fri, 22 Nov 2019 20:06:09 +0800 (CST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807;\n t=1574424398; bh=pvTT+4RTUS2gkOkoyJl31nZDpvGhWmlddBxcNTeH6zI=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=3qUm19s4r/OEb7zhbxxdBgjfx5jvX6qXK+RSBLgqQImFcNR20gn4v7UfHkoy+Otml\n WJXfgln8/X3wymB/2yEkJXuhIBvrTNCh3BQk9Vz9yhlIWT5255xHKUN2uTPxemUnG4\n EagKUETS5zKXNQ9DtMff7QjjgoSzBuwyWIQwNSqs=",
        "X-Virus-Scanned": "Debian amavisd-new at antispam1.tom.com",
        "From": "\"Wei Hu (Xavier)\" <xavier.huwei@tom.com>",
        "To": "dev@dpdk.org,\n\tstable@dpdk.org",
        "Cc": "xavier_huwei@163.com,\n\txavier.huwei@tom.com,\n\thuwei87@hisilicon.com",
        "Date": "Fri, 22 Nov 2019 20:06:24 +0800",
        "Message-Id": "<20191122120624.4963-7-xavier.huwei@tom.com>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20191122120624.4963-1-xavier.huwei@tom.com>",
        "References": "<20191122120624.4963-1-xavier.huwei@tom.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Fri, 22 Nov 2019 15:15:52 +0100",
        "Subject": "[dpdk-dev] [PATCH 6/6] net/hns3: fix duplicate VLAN",
        "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": "From: \"Min Hu (Connor)\" <humin29@huawei.com>\n\nWhen setting duplicate vlan, hns3 driver will also add vlan entry\nto vlan linked list, and this is unreasonable.\n\nThis patch adds checking whether the VLAN to be added already exists\nin the linked list and preventing adding duplicate vlan.\n\nFixes: 411d23b9eafb (\"net/hns3: support VLAN\")\nCc: stable@dpdk.org\n\nSigned-off-by: Min Hu (Connor) <humin29@huawei.com>\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\n---\n drivers/net/hns3/hns3_ethdev.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex 3435bce26..72315718a 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -282,6 +282,11 @@ hns3_add_dev_vlan_table(struct hns3_adapter *hns, uint16_t vlan_id,\n \tstruct hns3_hw *hw = &hns->hw;\n \tstruct hns3_pf *pf = &hns->pf;\n \n+\tLIST_FOREACH(vlan_entry, &pf->vlan_list, next) {\n+\t\tif (vlan_entry->vlan_id == vlan_id)\n+\t\t\treturn;\n+\t}\n+\n \tvlan_entry = rte_zmalloc(\"hns3_vlan_tbl\", sizeof(*vlan_entry), 0);\n \tif (vlan_entry == NULL) {\n \t\thns3_err(hw, \"Failed to malloc hns3 vlan table\");\n",
    "prefixes": [
        "6/6"
    ]
}