get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 110419,
    "url": "http://patches.dpdk.org/api/patches/110419/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220428095935.3612387-1-asekhar@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": "<20220428095935.3612387-1-asekhar@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220428095935.3612387-1-asekhar@marvell.com",
    "date": "2022-04-28T09:59:35",
    "name": "mempool/cnxk: avoid batch op free for empty mempools",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "25d2da2f50c9c329b5ef69af8d6ce3236135ddf6",
    "submitter": {
        "id": 2125,
        "url": "http://patches.dpdk.org/api/people/2125/?format=api",
        "name": "Ashwin Sekhar T K",
        "email": "asekhar@marvell.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/20220428095935.3612387-1-asekhar@marvell.com/mbox/",
    "series": [
        {
            "id": 22710,
            "url": "http://patches.dpdk.org/api/series/22710/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22710",
            "date": "2022-04-28T09:59:35",
            "name": "mempool/cnxk: avoid batch op free for empty mempools",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22710/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/110419/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/110419/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 D59C2A034C;\n\tThu, 28 Apr 2022 11:56:57 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6620D40E50;\n\tThu, 28 Apr 2022 11:56:57 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 7E9B34013F\n for <dev@dpdk.org>; Thu, 28 Apr 2022 11:56:55 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 23S7o3Dx023073\n for <dev@dpdk.org>; Thu, 28 Apr 2022 02:56:54 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fqpvs0fbw-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 28 Apr 2022 02:56:54 -0700",
            "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.18;\n Thu, 28 Apr 2022 02:56:53 -0700",
            "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.18 via Frontend\n Transport; Thu, 28 Apr 2022 02:56:53 -0700",
            "from lab-ci-142.marvell.com (unknown [10.28.36.142])\n by maili.marvell.com (Postfix) with ESMTP id CBCC63F704A;\n Thu, 28 Apr 2022 02:56:49 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=Y5ghACmbO5o3KFBVO78C/dyxtG7KOIFbrWMFxn17p50=;\n b=JV9P7MrC67lTGetDCdDhKj1DbGEWBppVfHytOaa9KK7I+9SA6U6+lv0DJWx0u7avJlTv\n ISFgCEpZQ86ziAfE8mzzAKmejCVWeLCIjhuaBCm4ylu2lox0n8nGu/K/I+T7B//h+s2l\n lPLyRfMV4RhxmCK3N2C4EJMR7YNT41/ECjL1ob+eLxjEiQWoWM5b7onXDilUYHh8FhLq\n pACdoxDtC1d3axABg3w4R/CJoIRDiOH+cUfLHdwliyXkVSipAVHVDAgLah2Z7tG/YlMV\n ElC40tg3PVxKKb2iNn2RrgFaGFEGLl0OWGvTkLp8yFrLHa2xJwEhg2+yD6z6BHNF3OSD hw==",
        "From": "Ashwin Sekhar T K <asekhar@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<jerinj@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>,\n <pbhagavatula@marvell.com>, <kirankumark@marvell.com>,\n <psatheesh@marvell.com>, <asekhar@marvell.com>, <anoobj@marvell.com>,\n <gakhil@marvell.com>, <ndabilpuram@marvell.com>, <hkalra@marvell.com>",
        "Subject": "[PATCH] mempool/cnxk: avoid batch op free for empty mempools",
        "Date": "Thu, 28 Apr 2022 15:29:35 +0530",
        "Message-ID": "<20220428095935.3612387-1-asekhar@marvell.com>",
        "X-Mailer": "git-send-email 2.32.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "fvrE0Pl-3fsh7nR68Bk1fzyDSFve29p-",
        "X-Proofpoint-ORIG-GUID": "fvrE0Pl-3fsh7nR68Bk1fzyDSFve29p-",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514\n definitions=2022-04-28_01,2022-04-27_01,2022-02-23_01",
        "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": "Batch op data is initialized inside mempool alloc. But\nin case of empty mempools, the alloc function is not\ncalled and hence the initialization of batch op data is\nalso not done. So ensure the validity of batch op data\ninside mempool free.\n\nSigned-off-by: Ashwin Sekhar T K <asekhar@marvell.com>\n---\n drivers/mempool/cnxk/cn10k_mempool_ops.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c b/drivers/mempool/cnxk/cn10k_mempool_ops.c\nindex 6ebbf91de5..a02e01cea0 100644\n--- a/drivers/mempool/cnxk/cn10k_mempool_ops.c\n+++ b/drivers/mempool/cnxk/cn10k_mempool_ops.c\n@@ -109,6 +109,12 @@ batch_op_fini(struct rte_mempool *mp)\n \tint i;\n \n \top_data = batch_op_data_get(mp->pool_id);\n+\tif (!op_data) {\n+\t\t/* Batch op data can be uninitialized in case of empty\n+\t\t * mempools.\n+\t\t */\n+\t\treturn;\n+\t}\n \n \trte_wmb();\n \tfor (i = 0; i < RTE_MAX_LCORE; i++) {\n",
    "prefixes": []
}