get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 137967,
    "url": "http://patchwork.dpdk.org/api/patches/137967/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240305072213.283205-8-asasidharan@marvell.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": "<20240305072213.283205-8-asasidharan@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240305072213.283205-8-asasidharan@marvell.com",
    "date": "2024-03-05T07:21:59",
    "name": "[07/21] test/cryptodev: allow zero packet length buffers",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e3754a7216e6511c4cf96e3ae7eff1213e5449d7",
    "submitter": {
        "id": 2800,
        "url": "http://patchwork.dpdk.org/api/people/2800/?format=api",
        "name": "Aakash Sasidharan",
        "email": "asasidharan@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240305072213.283205-8-asasidharan@marvell.com/mbox/",
    "series": [
        {
            "id": 31370,
            "url": "http://patchwork.dpdk.org/api/series/31370/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31370",
            "date": "2024-03-05T07:21:52",
            "name": "Improvements and new test cases",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/31370/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/137967/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/137967/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 03A9C43C4C;\n\tTue,  5 Mar 2024 08:23:10 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 988DA427E8;\n\tTue,  5 Mar 2024 08:22:41 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 01D63427DC\n for <dev@dpdk.org>; Tue,  5 Mar 2024 08:22:39 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id\n 4254UEuT025179; Mon, 4 Mar 2024 23:22:39 -0800",
            "from dc6wp-exch02.marvell.com ([4.21.29.225])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wm4gmr8yj-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Mon, 04 Mar 2024 23:22:39 -0800 (PST)",
            "from DC6WP-EXCH02.marvell.com (10.76.176.209) by\n DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.1258.12; Mon, 4 Mar 2024 23:22:38 -0800",
            "from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com\n (10.76.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend\n Transport; Mon, 4 Mar 2024 23:22:38 -0800",
            "from localhost.localdomain (unknown [10.28.36.177])\n by maili.marvell.com (Postfix) with ESMTP id D28733F7045;\n Mon,  4 Mar 2024 23:22:35 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding:content-type; s=\n pfpt0220; bh=C7tafcnTDdBl3qxkkiTjMfI0xGCffz3Xqh4OyKrDWQU=; b=VrD\n FvC4GXhlE3XwsXzO2uM6EhVmicXabxmKnZ5WsME8qgOUt3cSKwta6IgqjLQhEQwU\n uXcejSio2EjZ5Xtk1SJDyoW1C8/qPa8xSC+appzb0VS3ff1RP0/bj+y+It39m8kB\n bhSYo3xwnAOSwuCxogdQQ6ywv4XRyH2Wsh3X3YmnxBc2wjqzesQMev7+8bHfoUwM\n RMBOGJvc+Wk3N0jZQg3sqgX7lwVupBHYKtjVklgCS6rJwkzAyrhv9MSkabODdZm6\n ZJWIxE43/R0HqOz2Ow8J//0UXACuCDVdL804sLSaTtOHB0gPuYjYdHNXQgPfALeI\n ppS/c7QGLXQm/A0coNg==",
        "From": "Aakash Sasidharan <asasidharan@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>",
        "CC": "<jerinj@marvell.com>, <anoobj@marvell.com>, <vvelumuri@marvell.com>,\n <asasidharan@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH 07/21] test/cryptodev: allow zero packet length buffers",
        "Date": "Tue, 5 Mar 2024 12:51:59 +0530",
        "Message-ID": "<20240305072213.283205-8-asasidharan@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240305072213.283205-1-asasidharan@marvell.com>",
        "References": "<20240305072213.283205-1-asasidharan@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "pu4qhxS_LE8NT2jmKyJW0BdXb40T5Qsr",
        "X-Proofpoint-GUID": "pu4qhxS_LE8NT2jmKyJW0BdXb40T5Qsr",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2024-03-05_04,2024-03-04_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": "From: Anoob Joseph <anoobj@marvell.com>\n\nThe function 'create_segmented_mbuf' is updated to support zero packet\nlength mbufs. This allows testing of zero packet length payload with TLS\nrecord processing.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\n---\n app/test/test_cryptodev.h | 20 +++++++-------------\n 1 file changed, 7 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/app/test/test_cryptodev.h b/app/test/test_cryptodev.h\nindex e4e99d00c1..7d877ddfe5 100644\n--- a/app/test/test_cryptodev.h\n+++ b/app/test/test_cryptodev.h\n@@ -192,15 +192,8 @@ create_segmented_mbuf(struct rte_mempool *mbuf_pool, int pkt_len,\n \t\tint nb_segs, uint8_t pattern) {\n \n \tstruct rte_mbuf *m = NULL, *mbuf = NULL;\n+\tint size, t_len, data_len = 0;\n \tuint8_t *dst;\n-\tint data_len = 0;\n-\tint i, size;\n-\tint t_len;\n-\n-\tif (pkt_len < 1) {\n-\t\tprintf(\"Packet size must be 1 or more (is %d)\\n\", pkt_len);\n-\t\treturn NULL;\n-\t}\n \n \tif (nb_segs < 1) {\n \t\tprintf(\"Number of segments must be 1 or more (is %d)\\n\",\n@@ -212,17 +205,17 @@ create_segmented_mbuf(struct rte_mempool *mbuf_pool, int pkt_len,\n \tsize = pkt_len;\n \n \t/* Create chained mbuf_src and fill it generated data */\n-\tfor (i = 0; size > 0; i++) {\n+\tdo {\n \n \t\tm = rte_pktmbuf_alloc(mbuf_pool);\n-\t\tif (i == 0)\n-\t\t\tmbuf = m;\n-\n \t\tif (m == NULL) {\n \t\t\tprintf(\"Cannot create segment for source mbuf\");\n \t\t\tgoto fail;\n \t\t}\n \n+\t\tif (mbuf == NULL)\n+\t\t\tmbuf = m;\n+\n \t\t/* Make sure if tailroom is zeroed */\n \t\tmemset(m->buf_addr, pattern, m->buf_len);\n \n@@ -239,7 +232,8 @@ create_segmented_mbuf(struct rte_mempool *mbuf_pool, int pkt_len,\n \n \t\tsize -= data_len;\n \n-\t}\n+\t} while (size > 0);\n+\n \treturn mbuf;\n \n fail:\n",
    "prefixes": [
        "07/21"
    ]
}