get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120960,
    "url": "http://patches.dpdk.org/api/patches/120960/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221216015428.7410-6-lihuisong@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20221216015428.7410-6-lihuisong@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221216015428.7410-6-lihuisong@huawei.com",
    "date": "2022-12-16T01:54:25",
    "name": "[V7,5/8] mem: possible data truncation and conversion error",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1c38ea60d86f834615ae01d3d2d3b7160cc916c1",
    "submitter": {
        "id": 2085,
        "url": "http://patches.dpdk.org/api/people/2085/?format=api",
        "name": "lihuisong (C)",
        "email": "lihuisong@huawei.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221216015428.7410-6-lihuisong@huawei.com/mbox/",
    "series": [
        {
            "id": 26157,
            "url": "http://patches.dpdk.org/api/series/26157/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26157",
            "date": "2022-12-16T01:54:23",
            "name": "telemetry: fix data truncation and conversion error and add hex integer API",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/26157/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/120960/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/120960/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 89566A0543;\n\tFri, 16 Dec 2022 02:54:51 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 425F642D23;\n\tFri, 16 Dec 2022 02:54:36 +0100 (CET)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 4A43240695\n for <dev@dpdk.org>; Fri, 16 Dec 2022 02:54:29 +0100 (CET)",
            "from kwepemm600004.china.huawei.com (unknown [172.30.72.55])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NYBr0711yzqT4k;\n Fri, 16 Dec 2022 09:50:08 +0800 (CST)",
            "from localhost.localdomain (10.69.192.56) by\n kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.34; Fri, 16 Dec 2022 09:54:27 +0800"
        ],
        "From": "Huisong Li <lihuisong@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<bruce.richardson@intel.com>, <mb@smartsharesystems.com>,\n <andrew.rybchenko@oktetlabs.ru>, <huangdaode@huawei.com>,\n <liudongdong3@huawei.com>, <fengchengwen@huawei.com>, <lihuisong@huawei.com>",
        "Subject": "[PATCH V7 5/8] mem: possible data truncation and conversion error",
        "Date": "Fri, 16 Dec 2022 09:54:25 +0800",
        "Message-ID": "<20221216015428.7410-6-lihuisong@huawei.com>",
        "X-Mailer": "git-send-email 2.33.0",
        "In-Reply-To": "<20221216015428.7410-1-lihuisong@huawei.com>",
        "References": "<20221208080540.62913-1-lihuisong@huawei.com>\n <20221216015428.7410-1-lihuisong@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.69.192.56]",
        "X-ClientProxiedBy": "dggems702-chm.china.huawei.com (10.3.19.179) To\n kwepemm600004.china.huawei.com (7.193.23.242)",
        "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": "The 'u32' and 'u64' data can not assigned to 'int' type variable.\nThey need to use the 'u64' APIs to add.\n\nFixes: e6732d0d6e26 (\"mem: add telemetry infos\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n lib/eal/common/eal_common_memory.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/eal/common/eal_common_memory.c b/lib/eal/common/eal_common_memory.c\nindex 688dc615d7..8e427bf4b4 100644\n--- a/lib/eal/common/eal_common_memory.c\n+++ b/lib/eal/common/eal_common_memory.c\n@@ -1139,7 +1139,7 @@ handle_eal_heap_info_request(const char *cmd __rte_unused, const char *params,\n \tmalloc_heap_get_stats(heap, &sock_stats);\n \n \trte_tel_data_start_dict(d);\n-\trte_tel_data_add_dict_int(d, \"Head id\", heap_id);\n+\trte_tel_data_add_dict_u64(d, \"Head id\", heap_id);\n \trte_tel_data_add_dict_string(d, \"Name\", heap->name);\n \trte_tel_data_add_dict_u64(d, \"Heap_size\",\n \t\t\t\t  sock_stats.heap_totalsz_bytes);\n@@ -1201,13 +1201,13 @@ handle_eal_memzone_info_request(const char *cmd __rte_unused,\n \tmz = rte_fbarray_get(&mcfg->memzones, mz_idx);\n \n \trte_tel_data_start_dict(d);\n-\trte_tel_data_add_dict_int(d, \"Zone\", mz_idx);\n+\trte_tel_data_add_dict_u64(d, \"Zone\", mz_idx);\n \trte_tel_data_add_dict_string(d, \"Name\", mz->name);\n-\trte_tel_data_add_dict_int(d, \"Length\", mz->len);\n+\trte_tel_data_add_dict_u64(d, \"Length\", mz->len);\n \tsnprintf(addr, ADDR_STR, \"%p\", mz->addr);\n \trte_tel_data_add_dict_string(d, \"Address\", addr);\n \trte_tel_data_add_dict_int(d, \"Socket\", mz->socket_id);\n-\trte_tel_data_add_dict_int(d, \"Flags\", mz->flags);\n+\trte_tel_data_add_dict_u64(d, \"Flags\", mz->flags);\n \n \t/* go through each page occupied by this memzone */\n \tmsl = rte_mem_virt2memseg_list(mz->addr);\n@@ -1222,7 +1222,7 @@ handle_eal_memzone_info_request(const char *cmd __rte_unused,\n \tms_idx = RTE_PTR_DIFF(mz->addr, msl->base_va) / page_sz;\n \tms = rte_fbarray_get(&msl->memseg_arr, ms_idx);\n \n-\trte_tel_data_add_dict_int(d, \"Hugepage_size\", page_sz);\n+\trte_tel_data_add_dict_u64(d, \"Hugepage_size\", page_sz);\n \tsnprintf(addr, ADDR_STR, \"%p\", ms->addr);\n \trte_tel_data_add_dict_string(d, \"Hugepage_base\", addr);\n \n",
    "prefixes": [
        "V7",
        "5/8"
    ]
}