get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134541,
    "url": "http://patches.dpdk.org/api/patches/134541/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231122183559.2373-1-syalavarthi@marvell.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": "<20231122183559.2373-1-syalavarthi@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231122183559.2373-1-syalavarthi@marvell.com",
    "date": "2023-11-22T18:35:59",
    "name": "[v2,1/1] ml/cnxk: fix reading model and layer ID",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4d0febe85d1e37bf952db235c99cc1d9e737e16c",
    "submitter": {
        "id": 2480,
        "url": "http://patches.dpdk.org/api/people/2480/?format=api",
        "name": "Srikanth Yalavarthi",
        "email": "syalavarthi@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231122183559.2373-1-syalavarthi@marvell.com/mbox/",
    "series": [
        {
            "id": 30364,
            "url": "http://patches.dpdk.org/api/series/30364/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30364",
            "date": "2023-11-22T18:35:59",
            "name": "[v2,1/1] ml/cnxk: fix reading model and layer ID",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/30364/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/134541/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/134541/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 5C02443382;\n\tWed, 22 Nov 2023 19:36:07 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 29936402C7;\n\tWed, 22 Nov 2023 19:36:07 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id F3050402BE\n for <dev@dpdk.org>; Wed, 22 Nov 2023 19:36:04 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3AMIU65A010349 for <dev@dpdk.org>; Wed, 22 Nov 2023 10:36:04 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uh1jbcsd4-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Wed, 22 Nov 2023 10:36:03 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Wed, 22 Nov 2023 10:36:02 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Wed, 22 Nov 2023 10:36:02 -0800",
            "from ml-host-33.caveonetworks.com (unknown [10.110.143.233])\n by maili.marvell.com (Postfix) with ESMTP id 7E2283F7050;\n Wed, 22 Nov 2023 10:36:01 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=XzLIkSuoBta2v/M/PlmS2HbvVaFbOhEyPpZwMU8z4GU=;\n b=VITqhKpEKOcbWOfUE7P96R1CFkFg75RIvRSjruIia9+6tGzkOyEKiW9knZjJKcqQUf9a\n oU+ucfT016HHeSrwWDSwaonWF7lTyt5E7nrrDWkyRvdTdlSUAnZGt67PVm/vlQj+ut/a\n 0SeQADnyzR8SbzDmNn44uj77zetMNqgYnUM1Pn7TzsvMGHqmv1syBowdefuHn17SJiuW\n jIa2JULxN0J5IBMg+lViOeKPuDTb7WbBMFZy4J2P3E2aroXzmGZ61IkLJUdF6x3S616w\n vGHkIWYICASLSIgJRRE8uD3wv5rPdpVItq3zrUuVVKZq02jTMD/+4AgEz05ae3pgDG/e 1w==",
        "From": "Srikanth Yalavarthi <syalavarthi@marvell.com>",
        "To": "Srikanth Yalavarthi <syalavarthi@marvell.com>",
        "CC": "<dev@dpdk.org>, <sshankarnara@marvell.com>, <aprabhu@marvell.com>,\n <ptakkar@marvell.com>, <jerinj@marvell.com>",
        "Subject": "[PATCH v2 1/1] ml/cnxk: fix reading model and layer ID",
        "Date": "Wed, 22 Nov 2023 10:35:59 -0800",
        "Message-ID": "<20231122183559.2373-1-syalavarthi@marvell.com>",
        "X-Mailer": "git-send-email 2.42.0",
        "In-Reply-To": "<20231122163706.758-1-syalavarthi@marvell.com>",
        "References": "<20231122163706.758-1-syalavarthi@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "KL_Id_awWOjkky8mkskedybQZiI9zb5O",
        "X-Proofpoint-GUID": "KL_Id_awWOjkky8mkskedybQZiI9zb5O",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-11-22_13,2023-11-22_01,2023-05-22_02",
        "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": "Using model_id from op structure as layer index for TVM\nmodels with multiple MRVL layers is incorrect. This patch\nfixes the issue by reading the layer index from the job\ndescriptor structure.\n\nFixes: 31cc30b5f088 (\"ml/cnxk: update model start/stop functions\")\n\nSigned-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>\n---\nv2:\n  - restart upstream CI\n\n drivers/ml/cnxk/cn10k_ml_ops.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c\nindex b9d30278c61..7f7e5efceac 100644\n--- a/drivers/ml/cnxk/cn10k_ml_ops.c\n+++ b/drivers/ml/cnxk/cn10k_ml_ops.c\n@@ -1191,13 +1191,15 @@ cn10k_ml_result_update(struct cnxk_ml_dev *cnxk_mldev, int qp_id, void *request)\n \tuint64_t fw_latency;\n \tuint16_t model_id;\n \tuint16_t layer_id;\n+\tuint16_t idx;\n \n \treq = (struct cnxk_ml_req *)request;\n \tresult = &req->cn10k_req.result;\n \top = req->op;\n \tif (likely(result->error_code == 0)) {\n-\t\tmodel_id = cnxk_mldev->index_map[op->model_id].model_id;\n-\t\tlayer_id = cnxk_mldev->index_map[op->model_id].layer_id;\n+\t\tidx = req->cn10k_req.jd.hdr.model_id;\n+\t\tmodel_id = cnxk_mldev->index_map[idx].model_id;\n+\t\tlayer_id = cnxk_mldev->index_map[idx].layer_id;\n \t\tmodel = cnxk_mldev->mldev->data->models[model_id];\n \t\tlayer = &model->layer[layer_id];\n \t\tif (likely(qp_id >= 0)) {\n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}