get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87684,
    "url": "http://patchwork.dpdk.org/api/patches/87684/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1612355037-48768-5-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-5-git-send-email-oulijun@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1612355037-48768-5-git-send-email-oulijun@huawei.com",
    "date": "2021-02-03T12:23:50",
    "name": "[04/11] net/hns3: constraint TM peak rate",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e8c7eab60ef19c70095e6c5f97c7e03dc7323cf4",
    "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-5-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/87684/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/87684/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 C8E6FA0A0E;\n\tWed,  3 Feb 2021 13:25:19 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BC90A240569;\n\tWed,  3 Feb 2021 13:24:35 +0100 (CET)",
            "from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32])\n by mails.dpdk.org (Postfix) with ESMTP id DB4A424054D\n for <dev@dpdk.org>; Wed,  3 Feb 2021 13:24:29 +0100 (CET)",
            "from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60])\n by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DW1710rpKzjHJQ;\n Wed,  3 Feb 2021 20:23:25 +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:22 +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:50 +0800",
        "Message-ID": "<1612355037-48768-5-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 04/11] net/hns3: constraint TM peak rate",
        "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\nUser could config Port or TC's peak rate by TM ops, but hardware does\nnot support peak rate which lower than 1Mbps. So we constraint tm\npeak rate must be at least 1Mbps.\n\nFixes: c09c7847d892 (\"net/hns3: support traffic management\")\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Lijun Ou <oulijun@huawei.com>\n---\n drivers/net/hns3/hns3_tm.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/drivers/net/hns3/hns3_tm.c b/drivers/net/hns3/hns3_tm.c\nindex d1639d4..bcae57a 100644\n--- a/drivers/net/hns3/hns3_tm.c\n+++ b/drivers/net/hns3/hns3_tm.c\n@@ -200,6 +200,12 @@ hns3_tm_shaper_profile_param_check(struct rte_eth_dev *dev,\n \t\treturn -EINVAL;\n \t}\n \n+\tif (profile->peak.rate < hns3_tm_rate_convert_firmware2tm(1)) {\n+\t\terror->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_RATE;\n+\t\terror->message = \"peak rate must be at least 1Mbps\";\n+\t\treturn -EINVAL;\n+\t}\n+\n \tif (profile->peak.size) {\n \t\terror->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE;\n \t\terror->message = \"peak bucket size not supported\";\n",
    "prefixes": [
        "04/11"
    ]
}