get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83850,
    "url": "https://patches.dpdk.org/api/patches/83850/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1604932142-19900-5-git-send-email-oulijun@huawei.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1604932142-19900-5-git-send-email-oulijun@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1604932142-19900-5-git-send-email-oulijun@huawei.com",
    "date": "2020-11-09T14:29:00",
    "name": "[V3,4/6] net/hns3: check PCI config space writes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5a51fd23ca49c92409de1bdb7629e1e2baec1778",
    "submitter": {
        "id": 1675,
        "url": "https://patches.dpdk.org/api/people/1675/?format=api",
        "name": "Lijun Ou",
        "email": "oulijun@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1604932142-19900-5-git-send-email-oulijun@huawei.com/mbox/",
    "series": [
        {
            "id": 13748,
            "url": "https://patches.dpdk.org/api/series/13748/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13748",
            "date": "2020-11-09T14:29:00",
            "name": "bugfix and cleanups for hns3",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/13748/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/83850/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/83850/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 7C46DA0527;\n\tMon,  9 Nov 2020 15:28:47 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 589D66947;\n\tMon,  9 Nov 2020 15:28:46 +0100 (CET)",
            "from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190])\n by dpdk.org (Postfix) with ESMTP id EFAD46889\n for <dev@dpdk.org>; Mon,  9 Nov 2020 15:28:44 +0100 (CET)",
            "from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CVCz41WJzzkhYB\n for <dev@dpdk.org>; Mon,  9 Nov 2020 22:28:32 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id\n 14.3.487.0; Mon, 9 Nov 2020 22:28:34 +0800"
        ],
        "From": "Lijun Ou <oulijun@huawei.com>",
        "To": "<ferruh.yigit@intel.com>",
        "CC": "<dev@dpdk.org>, <linuxarm@huawei.com>",
        "Date": "Mon, 9 Nov 2020 22:29:00 +0800",
        "Message-ID": "<1604932142-19900-5-git-send-email-oulijun@huawei.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1604932142-19900-1-git-send-email-oulijun@huawei.com>",
        "References": "<1604634716-43484-1-git-send-email-oulijun@huawei.com>\n <1604932142-19900-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 V3 4/6] net/hns3: check PCI config space writes",
        "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": "Here adds a check for the return value when calling\nrte_pci_write_config.\n\nCoverity issue: 363714\nFixes: cea37e513329 (\"net/hns3: fix FLR reset\")\nCc: stable@dpdk.org\n\nSigned-off-by: Lijun Ou <oulijun@huawei.com>\n---\nV2->V3:\n- drop the un-related change\n\nV1->V2:\n- no fix\n---\n drivers/net/hns3/hns3_ethdev_vf.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c\nindex 2e9bfda..0e63314 100644\n--- a/drivers/net/hns3/hns3_ethdev_vf.c\n+++ b/drivers/net/hns3/hns3_ethdev_vf.c\n@@ -148,8 +148,12 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)\n \t\t\tcontrol |= PCI_MSIX_FLAGS_ENABLE;\n \t\telse\n \t\t\tcontrol &= ~PCI_MSIX_FLAGS_ENABLE;\n-\t\trte_pci_write_config(device, &control, sizeof(control),\n-\t\t\t\t     (pos + PCI_MSIX_FLAGS));\n+\t\tret = rte_pci_write_config(device, &control, sizeof(control),\n+\t\t\t\t\t  (pos + PCI_MSIX_FLAGS));\n+\t\tif (ret < 0) {\n+\t\t\tPMD_INIT_LOG(ERR, \"failed to write PCI offset 0x%x\",\n+\t\t\t\t    (pos + PCI_MSIX_FLAGS));\n+\t\t}\n \t\treturn 0;\n \t}\n \treturn -ENXIO;\n",
    "prefixes": [
        "V3",
        "4/6"
    ]
}