Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/117709/?format=api
http://patches.dpdk.org/api/patches/117709/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221008115833.29247-11-fengchengwen@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": "<20221008115833.29247-11-fengchengwen@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221008115833.29247-11-fengchengwen@huawei.com", "date": "2022-10-08T11:58:33", "name": "[v7,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": "http://patches.dpdk.org/api/people/2146/?format=api", "name": "fengchengwen", "email": "fengchengwen@huawei.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221008115833.29247-11-fengchengwen@huawei.com/mbox/", "series": [ { "id": 25050, "url": "http://patches.dpdk.org/api/series/25050/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25050", "date": "2022-10-08T11:58:29", "name": "introduce memarea library", "version": 7, "mbox": "http://patches.dpdk.org/series/25050/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/117709/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/117709/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 C7077A0542;\n\tSat, 8 Oct 2022 14:05:00 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4EA2D42BE4;\n\tSat, 8 Oct 2022 14:04:22 +0200 (CEST)", "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 08E5D4021F\n for <dev@dpdk.org>; Sat, 8 Oct 2022 14:04:14 +0200 (CEST)", "from dggpeml500024.china.huawei.com (unknown [172.30.72.57])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ml3dC0cyjzlXny;\n Sat, 8 Oct 2022 19:59:43 +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 20:04:12 +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>", "Subject": "[PATCH v7 10/10] test/memarea: support no MT-safe test", "Date": "Sat, 8 Oct 2022 11:58:33 +0000", "Message-ID": "<20221008115833.29247-11-fengchengwen@huawei.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20221008115833.29247-1-fengchengwen@huawei.com>", "References": "<20220721044648.6817-1-fengchengwen@huawei.com>\n <20221008115833.29247-1-fengchengwen@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.67.165.24]", "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) 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": [ "v7", "10/10" ] }{ "id": 117709, "url": "