Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/117697/?format=api
https://patches.dpdk.org/api/patches/117697/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221008113343.30577-11-fengchengwen@huawei.com/", "project": { "id": 1, "url": "https://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": "<20221008113343.30577-11-fengchengwen@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221008113343.30577-11-fengchengwen@huawei.com", "date": "2022-10-08T11:33:43", "name": "[v6,10/10] test/memarea: support no MT-safe test", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "deb7934bc4cdc566ded4a52e22f0b39a0244431d", "submitter": { "id": 2146, "url": "https://patches.dpdk.org/api/people/2146/?format=api", "name": "fengchengwen", "email": "fengchengwen@huawei.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20221008113343.30577-11-fengchengwen@huawei.com/mbox/", "series": [ { "id": 25049, "url": "https://patches.dpdk.org/api/series/25049/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25049", "date": "2022-10-08T11:33:34", "name": "introduce memarea library", "version": 6, "mbox": "https://patches.dpdk.org/series/25049/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/117697/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/117697/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 D9ACFA0542;\n\tSat, 8 Oct 2022 13:40:07 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3AB4F42BA6;\n\tSat, 8 Oct 2022 13:39:37 +0200 (CEST)", "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 1930A42BBC\n for <dev@dpdk.org>; Sat, 8 Oct 2022 13:39:31 +0200 (CEST)", "from dggpeml500024.china.huawei.com (unknown [172.30.72.55])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ml34b1532zlXjB;\n Sat, 8 Oct 2022 19:34:55 +0800 (CST)", "from localhost.localdomain (10.67.165.24) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.31; Sat, 8 Oct 2022 19:39:24 +0800" ], "From": "Chengwen Feng <fengchengwen@huawei.com>", "To": "<david.marchand@redhat.com>, <mb@smartsharesystems.com>,\n <anatoly.burakov@intel.com>, <dmitry.kozliuk@gmail.com>,\n <jerinjacobk@gmail.com>, <hofors@lysator.liu.se>", "CC": "<thomas@monjalon.net>, <dev@dpdk.org>, <datshan@qq.com>", "Subject": "[PATCH v6 10/10] test/memarea: support no MT-safe test", "Date": "Sat, 8 Oct 2022 11:33:43 +0000", "Message-ID": "<20221008113343.30577-11-fengchengwen@huawei.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20221008113343.30577-1-fengchengwen@huawei.com>", "References": "<20220721044648.6817-1-fengchengwen@huawei.com>\n <20221008113343.30577-1-fengchengwen@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.67.165.24]", "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n dggpeml500024.china.huawei.com (7.185.36.10)", "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": "MT-safe is enabled by default in previous test, this patch adds no\nMT-safe test.\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n app/test/test_memarea.c | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)", "diff": "diff --git a/app/test/test_memarea.c b/app/test/test_memarea.c\nindex 28c66b886c..adadc6dcfc 100644\n--- a/app/test/test_memarea.c\n+++ b/app/test/test_memarea.c\n@@ -369,6 +369,35 @@ test_memarea_backup(void)\n \treturn 0;\n }\n \n+static int\n+test_memarea_no_mt_safe(void)\n+{\n+\tstruct rte_memarea_param init;\n+\tstruct rte_memarea *ma;\n+\tint ret;\n+\n+\t/* prepare env */\n+\ttest_memarea_init_def_param(&init);\n+\tinit.source = RTE_MEMAREA_SOURCE_LIBC;\n+\tinit.total_sz = MEMAREA_TEST_DEFAULT_SIZE;\n+\tinit.mt_safe = false;\n+\tma = rte_memarea_create(&init);\n+\tRTE_TEST_ASSERT(ma != NULL, \"Expected Non-NULL\");\n+\n+\t/* test for all API */\n+\t(void)rte_memarea_alloc(ma, 1, 0);\n+\t(void)rte_memarea_alloc(ma, 1, 0);\n+\trte_memarea_free(ma, rte_memarea_alloc(ma, 1, 0));\n+\trte_memarea_update_refcnt(ma, rte_memarea_alloc(ma, 1, 0), 1);\n+\trte_memarea_update_refcnt(ma, rte_memarea_alloc(ma, 1, 0), -1);\n+\tret = rte_memarea_dump(ma, stderr, true);\n+\tRTE_TEST_ASSERT(ret == 0, \"Expected ZERO\");\n+\n+\trte_memarea_destroy(ma);\n+\n+\treturn 0;\n+}\n+\n static int\n test_memarea(void)\n {\n@@ -381,6 +410,7 @@ test_memarea(void)\n \tMEMAREA_TEST_API_RUN(test_memarea_alloc_free);\n \tMEMAREA_TEST_API_RUN(test_memarea_dump);\n \tMEMAREA_TEST_API_RUN(test_memarea_backup);\n+\tMEMAREA_TEST_API_RUN(test_memarea_no_mt_safe);\n \n \treturn test_memarea_retcode();\n }\n", "prefixes": [ "v6", "10/10" ] }{ "id": 117697, "url": "