get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75928,
    "url": "http://patchwork.dpdk.org/api/patches/75928/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200825115305.58490-8-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-8-huwei013@chinasoftinc.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200825115305.58490-8-huwei013@chinasoftinc.com",
    "date": "2020-08-25T11:53:01",
    "name": "[07/11] net/hns3: replace private macro with RTE MAX",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3f87998f2fdb2eabcb2172feffd45b112ae5bf04",
    "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-8-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/75928/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/75928/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 8DF40A04B1;\n\tTue, 25 Aug 2020 13:54:49 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1AD451C294;\n\tTue, 25 Aug 2020 13:53:48 +0200 (CEST)",
            "from mail.chinasoftinc.com (unknown [114.113.233.8])\n by dpdk.org (Postfix) with ESMTP id 823991C126\n for <dev@dpdk.org>; Tue, 25 Aug 2020 13:53:44 +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:34 +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:01 +0800",
        "Message-ID": "<20200825115305.58490-8-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 07/11] net/hns3: replace private macro with RTE\n\tMAX",
        "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\nThis patch uses RTE_MAX function in DPDK lib to replace the private\nmacro named max_t in hns3 PMD driver.\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_ethdev.c | 5 ++---\n drivers/net/hns3/hns3_ethdev.h | 5 -----\n 2 files changed, 2 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex b9ee11413..fca035d4f 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -3285,7 +3285,7 @@ hns3_is_rx_buf_ok(struct hns3_hw *hw, struct hns3_pkt_buf_alloc *buf_alloc,\n \t\t\t\t\t+ pf->dv_buf_size;\n \n \tshared_buf_tc = tc_num * aligned_mps + aligned_mps;\n-\tshared_std = roundup(max_t(uint32_t, shared_buf_min, shared_buf_tc),\n+\tshared_std = roundup(RTE_MAX(shared_buf_min, shared_buf_tc),\n \t\t\t     HNS3_BUF_SIZE_UNIT);\n \n \trx_priv = hns3_get_rx_priv_buff_alloced(buf_alloc);\n@@ -3315,8 +3315,7 @@ hns3_is_rx_buf_ok(struct hns3_hw *hw, struct hns3_pkt_buf_alloc *buf_alloc,\n \t\tif (tc_num)\n \t\t\thi_thrd = hi_thrd / tc_num;\n \n-\t\thi_thrd = max_t(uint32_t, hi_thrd,\n-\t\t\t\tHNS3_BUF_MUL_BY * aligned_mps);\n+\t\thi_thrd = RTE_MAX(hi_thrd, HNS3_BUF_MUL_BY * aligned_mps);\n \t\thi_thrd = rounddown(hi_thrd, HNS3_BUF_SIZE_UNIT);\n \t\tlo_thrd = hi_thrd - aligned_mps / HNS3_BUF_DIV_BY;\n \t} else {\ndiff --git a/drivers/net/hns3/hns3_ethdev.h b/drivers/net/hns3/hns3_ethdev.h\nindex ca4cade42..a42479d64 100644\n--- a/drivers/net/hns3/hns3_ethdev.h\n+++ b/drivers/net/hns3/hns3_ethdev.h\n@@ -708,11 +708,6 @@ struct hns3_adapter {\n \n #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))\n \n-#define max_t(type, x, y) ({                    \\\n-\ttype __max1 = (x);                      \\\n-\ttype __max2 = (y);                      \\\n-\t__max1 > __max2 ? __max1 : __max2; })\n-\n static inline void hns3_write_reg(void *base, uint32_t reg, uint32_t value)\n {\n \trte_write32(value, (volatile void *)((char *)base + reg));\n",
    "prefixes": [
        "07/11"
    ]
}