get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129920,
    "url": "http://patchwork.dpdk.org/api/patches/129920/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230805083627.8681-6-liudongdong3@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": "<20230805083627.8681-6-liudongdong3@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230805083627.8681-6-liudongdong3@huawei.com",
    "date": "2023-08-05T08:36:27",
    "name": "[5/5] net/hns3: fix un-align format TM info",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3723f058c18b5a4e0c9c645d938122f36d4c44ba",
    "submitter": {
        "id": 2718,
        "url": "http://patchwork.dpdk.org/api/people/2718/?format=api",
        "name": "Dongdong Liu",
        "email": "liudongdong3@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/20230805083627.8681-6-liudongdong3@huawei.com/mbox/",
    "series": [
        {
            "id": 29116,
            "url": "http://patchwork.dpdk.org/api/series/29116/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29116",
            "date": "2023-08-05T08:36:24",
            "name": "net/hns3: some bugfixes for hns3",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29116/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129920/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/129920/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 9261742FDE;\n\tSat,  5 Aug 2023 10:40:40 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 91C6C43282;\n\tSat,  5 Aug 2023 10:40:07 +0200 (CEST)",
            "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id CB6C543264;\n Sat,  5 Aug 2023 10:40:04 +0200 (CEST)",
            "from kwepemi500017.china.huawei.com (unknown [172.30.72.57])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RHwwc0j1mz1KCCX;\n Sat,  5 Aug 2023 16:38:56 +0800 (CST)",
            "from localhost.localdomain (10.28.79.22) by\n kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.27; Sat, 5 Aug 2023 16:40:01 +0800"
        ],
        "From": "Dongdong Liu <liudongdong3@huawei.com>",
        "To": "<dev@dpdk.org>, <ferruh.yigit@amd.com>, <thomas@monjalon.net>,\n <andrew.rybchenko@oktetlabs.ru>",
        "CC": "<stable@dpdk.org>",
        "Subject": "[PATCH 5/5] net/hns3: fix un-align format TM info",
        "Date": "Sat, 5 Aug 2023 16:36:27 +0800",
        "Message-ID": "<20230805083627.8681-6-liudongdong3@huawei.com>",
        "X-Mailer": "git-send-email 2.22.0",
        "In-Reply-To": "<20230805083627.8681-1-liudongdong3@huawei.com>",
        "References": "<20230805083627.8681-1-liudongdong3@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.28.79.22]",
        "X-ClientProxiedBy": "dggems701-chm.china.huawei.com (10.3.19.178) To\n kwepemi500017.china.huawei.com (7.221.188.110)",
        "X-CFilter-Loop": "Reflected",
        "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"
    },
    "content": "From: Chengwen Feng <fengchengwen@huawei.com>\n\nCurrently the dumped TM info is un-align, which are:\n  - TM config info:\n\t  -- nb_leaf_nodes_max=64 nb_nodes_max=73\n\t  -- nb_shaper_profile=2 nb_tc_node=1 nb_queue_node=1\n\t  -- committed=0\n  shaper_profile:\n    id=800 reference_count=1 peak_rate=4000000Bps\n    id=801 reference_count=1 peak_rate=12000000Bps\n  port_node:\n    ...\n\nThis patch fix it, the new formatting:\n  - TM config info:\n\t  -- nb_leaf_nodes_max=256 nb_nodes_max=265\n\t  -- nb_shaper_profile=2 nb_tc_node=1 nb_queue_node=1\n\t  -- committed=1\n\t  -- shaper_profile:\n\t       id=800 reference_count=0 peak_rate=4000000Bps\n\t       id=801 reference_count=0 peak_rate=12000000Bps\n\t  -- port_node:\n\t       ...\n\nFixes: e4cfe6bb9114 (\"net/hns3: dump TM configuration info\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nSigned-off-by: Dongdong Liu <liudongdong3@huawei.com>\n---\n drivers/net/hns3/hns3_dump.c | 18 +++++++++---------\n 1 file changed, 9 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_dump.c b/drivers/net/hns3/hns3_dump.c\nindex 67b45e6dc3..5c21ff0a33 100644\n--- a/drivers/net/hns3/hns3_dump.c\n+++ b/drivers/net/hns3/hns3_dump.c\n@@ -664,10 +664,10 @@ hns3_get_tm_conf_shaper_info(FILE *file, struct hns3_tm_conf *conf)\n \tif (conf->nb_shaper_profile == 0)\n \t\treturn;\n \n-\tfprintf(file, \"  shaper_profile:\\n\");\n+\tfprintf(file, \"\\t  -- shaper_profile:\\n\");\n \tTAILQ_FOREACH(shaper_profile, shaper_profile_list, node) {\n \t\tfprintf(file,\n-\t\t\t\"    id=%u reference_count=%u peak_rate=%\" PRIu64 \"Bps\\n\",\n+\t\t\t\"\\t       id=%u reference_count=%u peak_rate=%\" PRIu64 \"Bps\\n\",\n \t\t\tshaper_profile->shaper_profile_id,\n \t\t\tshaper_profile->reference_count,\n \t\t\tshaper_profile->profile.peak.rate);\n@@ -681,8 +681,8 @@ hns3_get_tm_conf_port_node_info(FILE *file, struct hns3_tm_conf *conf)\n \t\treturn;\n \n \tfprintf(file,\n-\t\t\"  port_node:\\n\"\n-\t\t\"    node_id=%u reference_count=%u shaper_profile_id=%d\\n\",\n+\t\t\"\\t  -- port_node:\\n\"\n+\t\t\"\\t       node_id=%u reference_count=%u shaper_profile_id=%d\\n\",\n \t\tconf->root->id, conf->root->reference_count,\n \t\tconf->root->shaper_profile ?\n \t\t(int)conf->root->shaper_profile->shaper_profile_id : -1);\n@@ -699,7 +699,7 @@ hns3_get_tm_conf_tc_node_info(FILE *file, struct hns3_tm_conf *conf)\n \tif (conf->nb_tc_node == 0)\n \t\treturn;\n \n-\tfprintf(file, \"  tc_node:\\n\");\n+\tfprintf(file, \"\\t  -- tc_node:\\n\");\n \tmemset(tc_node, 0, sizeof(tc_node));\n \tTAILQ_FOREACH(tm_node, tc_list, node) {\n \t\ttidx = hns3_tm_calc_node_tc_no(conf, tm_node->id);\n@@ -712,7 +712,7 @@ hns3_get_tm_conf_tc_node_info(FILE *file, struct hns3_tm_conf *conf)\n \t\tif (tm_node == NULL)\n \t\t\tcontinue;\n \t\tfprintf(file,\n-\t\t\t\"    id=%u TC%u reference_count=%u parent_id=%d \"\n+\t\t\t\"\\t       id=%u TC%u reference_count=%u parent_id=%d \"\n \t\t\t\"shaper_profile_id=%d\\n\",\n \t\t\ttm_node->id, hns3_tm_calc_node_tc_no(conf, tm_node->id),\n \t\t\ttm_node->reference_count,\n@@ -738,7 +738,7 @@ hns3_get_tm_conf_queue_format_info(FILE *file, struct hns3_tm_node **queue_node,\n \t\tend_queue_id = (i + 1) * HNS3_PERLINE_QUEUES - 1;\n \t\tif (end_queue_id > nb_tx_queues - 1)\n \t\t\tend_queue_id = nb_tx_queues - 1;\n-\t\tfprintf(file, \"    %04u - %04u | \", start_queue_id,\n+\t\tfprintf(file, \"\\t       %04u - %04u | \", start_queue_id,\n \t\t\tend_queue_id);\n \t\tfor (j = start_queue_id; j < nb_tx_queues; j++) {\n \t\t\tif (j >= end_queue_id + 1)\n@@ -767,8 +767,8 @@ hns3_get_tm_conf_queue_node_info(FILE *file, struct hns3_tm_conf *conf,\n \t\treturn;\n \n \tfprintf(file,\n-\t\t\"  queue_node:\\n\"\n-\t\t\"    tx queue id | mapped tc (8 mean node not exist)\\n\");\n+\t\t\"\\t  -- queue_node:\\n\"\n+\t\t\"\\t       tx queue id | mapped tc (8 mean node not exist)\\n\");\n \n \tmemset(queue_node, 0, sizeof(queue_node));\n \tmemset(queue_node_tc, 0, sizeof(queue_node_tc));\n",
    "prefixes": [
        "5/5"
    ]
}