get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75932,
    "url": "http://patchwork.dpdk.org/api/patches/75932/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200825115305.58490-12-huwei013@chinasoftinc.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": "<20200825115305.58490-12-huwei013@chinasoftinc.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200825115305.58490-12-huwei013@chinasoftinc.com",
    "date": "2020-08-25T11:53:05",
    "name": "[11/11] net/hns3: fix some incomplete command structures",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "61fcd99c6f14d025eff02ea00d57dbbf72d7f2f3",
    "submitter": {
        "id": 1537,
        "url": "http://patchwork.dpdk.org/api/people/1537/?format=api",
        "name": "Wei Hu (Xavier)",
        "email": "huwei013@chinasoftinc.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/20200825115305.58490-12-huwei013@chinasoftinc.com/mbox/",
    "series": [
        {
            "id": 11778,
            "url": "http://patchwork.dpdk.org/api/series/11778/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=11778",
            "date": "2020-08-25T11:52:54",
            "name": "updates for hns3 PMD driver",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/11778/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/75932/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/75932/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 3D569A04B1;\n\tTue, 25 Aug 2020 13:55:30 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5311C1C2BC;\n\tTue, 25 Aug 2020 13:53:54 +0200 (CEST)",
            "from mail.chinasoftinc.com (unknown [114.113.233.8])\n by dpdk.org (Postfix) with ESMTP id E505B1C236\n for <dev@dpdk.org>; Tue, 25 Aug 2020 13:53:49 +0200 (CEST)",
            "from localhost.localdomain (65.49.108.226) by INCCAS002.ito.icss\n (10.168.0.60) with Microsoft SMTP Server id 14.3.487.0; Tue, 25 Aug 2020\n 19:53:44 +0800"
        ],
        "From": "\"Wei Hu (Xavier)\" <huwei013@chinasoftinc.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>, <xavier.huwei@huawei.com>",
        "Date": "Tue, 25 Aug 2020 19:53:05 +0800",
        "Message-ID": "<20200825115305.58490-12-huwei013@chinasoftinc.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20200825115305.58490-1-huwei013@chinasoftinc.com>",
        "References": "<20200825115305.58490-1-huwei013@chinasoftinc.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[65.49.108.226]",
        "Subject": "[dpdk-dev] [PATCH 11/11] net/hns3: fix some incomplete command\n\tstructures",
        "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: Huisong Li <lihuisong@huawei.com>\n\nThe descriptor of the command between firmware and hns3 PMD driver\nconsists of 8-byte header and 24-byte data field. The contents sent to\nfirmware are packaged into a command structure as the data field of\ncommand descriptor.\n\nThere are some command structures in hns3_dcb.h file that are less than\n24 byte. So this patch fixes these incomplete command structures.\n\nFixes: 62e3ccc2b94c6 (\"net/hns3: support flow control\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nSigned-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>\n---\n drivers/net/hns3/hns3_dcb.h | 12 +++++++++++-\n 1 file changed, 11 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_dcb.h b/drivers/net/hns3/hns3_dcb.h\nindex 1636c5ae8..557d88bc1 100644\n--- a/drivers/net/hns3/hns3_dcb.h\n+++ b/drivers/net/hns3/hns3_dcb.h\n@@ -26,16 +26,19 @@ enum hns3_shap_bucket {\n struct hns3_priority_weight_cmd {\n \tuint8_t pri_id;\n \tuint8_t dwrr;\n+\tuint8_t rsvd[22];\n };\n \n struct hns3_qs_weight_cmd {\n \tuint16_t qs_id;\n \tuint8_t dwrr;\n+\tuint8_t rsvd[21];\n };\n \n struct hns3_pg_weight_cmd {\n \tuint8_t pg_id;\n \tuint8_t dwrr;\n+\tuint8_t rsvd[22];\n };\n \n struct hns3_ets_tc_weight_cmd {\n@@ -50,6 +53,7 @@ struct hns3_qs_to_pri_link_cmd {\n \tuint8_t priority;\n #define HNS3_DCB_QS_PRI_LINK_VLD_MSK\tBIT(0)\n \tuint8_t link_vld;\n+\tuint8_t rsvd1[18];\n };\n \n struct hns3_nq_to_qs_link_cmd {\n@@ -57,6 +61,7 @@ struct hns3_nq_to_qs_link_cmd {\n \tuint16_t rsvd;\n #define HNS3_DCB_Q_QS_LINK_VLD_MSK\tBIT(10)\n \tuint16_t qset_id;\n+\tuint8_t rsvd1[18];\n };\n \n #define HNS3_DCB_SHAP_IR_B_MSK  GENMASK(7, 0)\n@@ -74,12 +79,14 @@ struct hns3_pri_shapping_cmd {\n \tuint8_t pri_id;\n \tuint8_t rsvd[3];\n \tuint32_t pri_shapping_para;\n+\tuint32_t rsvd1[4];\n };\n \n struct hns3_pg_shapping_cmd {\n \tuint8_t pg_id;\n \tuint8_t rsvd[3];\n \tuint32_t pg_shapping_para;\n+\tuint32_t rsvd1[4];\n };\n \n #define HNS3_BP_GRP_NUM\t\t32\n@@ -92,16 +99,18 @@ struct hns3_bp_to_qs_map_cmd {\n \tuint8_t rsvd[2];\n \tuint8_t qs_group_id;\n \tuint32_t qs_bit_map;\n-\tuint32_t rsvd1;\n+\tuint32_t rsvd1[4];\n };\n \n struct hns3_pfc_en_cmd {\n \tuint8_t tx_rx_en_bitmap;\n \tuint8_t pri_en_bitmap;\n+\tuint8_t rsvd[22];\n };\n \n struct hns3_port_shapping_cmd {\n \tuint32_t port_shapping_para;\n+\tuint32_t rsvd[5];\n };\n \n struct hns3_cfg_pause_param_cmd {\n@@ -119,6 +128,7 @@ struct hns3_pg_to_pri_link_cmd {\n \tuint8_t pg_id;\n \tuint8_t rsvd1[3];\n \tuint8_t pri_bit_map;\n+\tuint8_t rsvd2[19];\n };\n \n enum hns3_shaper_level {\n",
    "prefixes": [
        "11/11"
    ]
}