Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/66007/?format=api
http://patches.dpdk.org/api/patches/66007/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200224113515.1744-7-konstantin.ananyev@intel.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": "<20200224113515.1744-7-konstantin.ananyev@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200224113515.1744-7-konstantin.ananyev@intel.com", "date": "2020-02-24T11:35:15", "name": "[RFC,6/6] test/ring: add contention stress test for HTS ring", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "24d6c249657d2253cba6aa2ce050fcc736238247", "submitter": { "id": 33, "url": "http://patches.dpdk.org/api/people/33/?format=api", "name": "Ananyev, Konstantin", "email": "konstantin.ananyev@intel.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/20200224113515.1744-7-konstantin.ananyev@intel.com/mbox/", "series": [ { "id": 8659, "url": "http://patches.dpdk.org/api/series/8659/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8659", "date": "2020-02-24T11:35:09", "name": "New sync modes for ring", "version": 1, "mbox": "http://patches.dpdk.org/series/8659/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/66007/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/66007/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id CE928A0524;\n\tMon, 24 Feb 2020 12:36:28 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DE54F1BFF3;\n\tMon, 24 Feb 2020 12:35:33 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 9A0621BFE0\n for <dev@dpdk.org>; Mon, 24 Feb 2020 12:35:29 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 24 Feb 2020 03:35:29 -0800", "from sivswdev08.ir.intel.com ([10.237.217.47])\n by fmsmga005.fm.intel.com with ESMTP; 24 Feb 2020 03:35:26 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,480,1574150400\"; d=\"scan'208\";a=\"435878550\"", "From": "Konstantin Ananyev <konstantin.ananyev@intel.com>", "To": "dev@dpdk.org", "Cc": "olivier.matz@6wind.com, Konstantin Ananyev <konstantin.ananyev@intel.com>", "Date": "Mon, 24 Feb 2020 11:35:15 +0000", "Message-Id": "<20200224113515.1744-7-konstantin.ananyev@intel.com>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20200224113515.1744-1-konstantin.ananyev@intel.com>", "References": "<20200224113515.1744-1-konstantin.ananyev@intel.com>", "Subject": "[dpdk-dev] [RFC 6/6] test/ring: add contention stress test for HTS\n\tring", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Introduce new test case to test HTS ring mode under contention.\n\nSigned-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\n---\n app/test/Makefile | 1 +\n app/test/meson.build | 1 +\n app/test/test_ring_hts_stress.c | 28 ++++++++++++++++++++++++++++\n 3 files changed, 30 insertions(+)\n create mode 100644 app/test/test_ring_hts_stress.c", "diff": "diff --git a/app/test/Makefile b/app/test/Makefile\nindex d22b9f702..ff151cd55 100644\n--- a/app/test/Makefile\n+++ b/app/test/Makefile\n@@ -77,6 +77,7 @@ SRCS-y += test_external_mem.c\n SRCS-y += test_rand_perf.c\n \n SRCS-y += test_ring.c\n+SRCS-y += test_ring_hts_stress.c\n SRCS-y += test_ring_perf.c\n SRCS-y += test_ring_rts_stress.c\n SRCS-y += test_ring_stress.c\ndiff --git a/app/test/meson.build b/app/test/meson.build\nindex fa4fb4b51..7e58fa999 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -100,6 +100,7 @@ test_sources = files('commands.c',\n \t'test_rib.c',\n \t'test_rib6.c',\n \t'test_ring.c',\n+\t'test_ring_hts_stress.c',\n \t'test_ring_perf.c',\n \t'test_ring_rts_stress.c',\n \t'test_ring_stress.c',\ndiff --git a/app/test/test_ring_hts_stress.c b/app/test/test_ring_hts_stress.c\nnew file mode 100644\nindex 000000000..b7f2d21fc\n--- /dev/null\n+++ b/app/test/test_ring_hts_stress.c\n@@ -0,0 +1,28 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2020 Intel Corporation\n+ */\n+\n+#include \"test_ring_stress.h\"\n+\n+static inline uint32_t\n+_st_ring_dequeue_bulk(struct rte_ring *r, void **obj, uint32_t n,\n+\tuint32_t *avail)\n+{\n+\treturn rte_ring_hts_dequeue_bulk(r, obj, n, avail);\n+}\n+\n+static inline uint32_t\n+_st_ring_enqueue_bulk(struct rte_ring *r, void * const *obj, uint32_t n,\n+\tuint32_t *free)\n+{\n+\treturn rte_ring_hts_enqueue_bulk(r, obj, n, free);\n+}\n+\n+static int\n+_st_ring_init(struct rte_ring *r, const char *name, uint32_t num)\n+{\n+\treturn rte_ring_init(r, name, num,\n+\t\tRING_F_MP_HTS_ENQ | RING_F_MC_HTS_DEQ);\n+}\n+\n+REGISTER_TEST_COMMAND(ring_stress_hts_autotest, test_ring_stress);\n", "prefixes": [ "RFC", "6/6" ] }{ "id": 66007, "url": "