Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133437/?format=api
http://patches.dpdk.org/api/patches/133437/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/94813d9f9220b61d6634992d9d7ebca094a4e8d1.1698344721.git.gmuthukrishn@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": "<94813d9f9220b61d6634992d9d7ebca094a4e8d1.1698344721.git.gmuthukrishn@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/94813d9f9220b61d6634992d9d7ebca094a4e8d1.1698344721.git.gmuthukrishn@marvell.com", "date": "2023-10-26T18:31:39", "name": "[v5,1/4] app/dma-perf: add skip support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6dd8752d31d52df05650e572f76e29781032f2f2", "submitter": { "id": 2301, "url": "http://patches.dpdk.org/api/people/2301/?format=api", "name": "Gowrishankar Muthukrishnan", "email": "gmuthukrishn@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/94813d9f9220b61d6634992d9d7ebca094a4e8d1.1698344721.git.gmuthukrishn@marvell.com/mbox/", "series": [ { "id": 30012, "url": "http://patches.dpdk.org/api/series/30012/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30012", "date": "2023-10-26T18:31:38", "name": "app/dma-perf: PCI Dev and SG copy support", "version": 5, "mbox": "http://patches.dpdk.org/series/30012/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133437/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/133437/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 924EB4320B;\n\tThu, 26 Oct 2023 20:31:59 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2EB8F410FD;\n\tThu, 26 Oct 2023 20:31:57 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id CCA6840EF0\n for <dev@dpdk.org>; Thu, 26 Oct 2023 20:31:55 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 39QI9rcv027678; Thu, 26 Oct 2023 11:31:55 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tyw5083be-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 26 Oct 2023 11:31:55 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 26 Oct 2023 11:31:53 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Thu, 26 Oct 2023 11:31:53 -0700", "from BG-LT91401.marvell.com (BG-LT91401.marvell.com [10.28.168.34])\n by maili.marvell.com (Postfix) with ESMTP id BD2763F7054;\n Thu, 26 Oct 2023 11:31:50 -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 : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=ACsbdnRzknyCBQQqY0h0j4vvrA2YShqI97KxzNupIfo=;\n b=SObxuCmtj3fHK4ZP8cPSGsot475JWhK0x1uCEWaxntq9exS1BJXpWfTpqdODmyODQe6S\n SbMXqnZmadjVqAcDmIAFDFPAiIszKgkmYRW/uzAyoDFLMcQDHxBsapskLbnOND1uSMtt\n T+CnaiQIuLuTJBrY3iT16pmg1E9+Bng7e7HF3el5A5jTegWpJ5/W3ljoPIOPw7og1YER\n +aWNdYea0dsc6Uv01JX31wRwjAZV4IO5ufkl+QVr4ov7aZlPKaP1aV5y6/YGnmGsudrC\n xYp2FZsxSUtxH5LqjIaEVJw/5jtP5ipKvMRp44zFszVgKWm9WF0gCkK1YCYWQUWDHQbV KQ==", "From": "Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>", "To": "<dev@dpdk.org>", "CC": "<anoobj@marvell.com>, Cheng Jiang <honest.jiang@foxmail.com>, Kevin Laatz\n <kevin.laatz@intel.com>, Bruce Richardson <bruce.richardson@intel.com>,\n \"Pavan Nikhilesh\" <pbhagavatula@marvell.com>, Amit Prakash Shukla\n <amitprakashs@marvell.com>", "Subject": "[PATCH v5 1/4] app/dma-perf: add skip support", "Date": "Fri, 27 Oct 2023 00:01:39 +0530", "Message-ID": "\n <94813d9f9220b61d6634992d9d7ebca094a4e8d1.1698344721.git.gmuthukrishn@marvell.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<cover.1698344721.git.gmuthukrishn@marvell.com>", "References": "<cover.1698344721.git.gmuthukrishn@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "O7uqkQlAky5gJWPUBgJVz7ryiAxz0v_J", "X-Proofpoint-GUID": "O7uqkQlAky5gJWPUBgJVz7ryiAxz0v_J", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-10-26_17,2023-10-26_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: Amit Prakash Shukla <amitprakashs@marvell.com>\n\nAdd support to skip running a dma-perf test-case.\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\n---\n app/test-dma-perf/config.ini | 2 ++\n app/test-dma-perf/main.c | 23 +++++++++++++++++++++++\n app/test-dma-perf/main.h | 1 +\n 3 files changed, 26 insertions(+)", "diff": "diff --git a/app/test-dma-perf/config.ini b/app/test-dma-perf/config.ini\nindex b550f4b23f..4d59234b2a 100644\n--- a/app/test-dma-perf/config.ini\n+++ b/app/test-dma-perf/config.ini\n@@ -36,6 +36,8 @@\n ; If you do not specify a result file, one will be generated with the same name as the configuration\n ; file, with the addition of \"_result.csv\" at the end.\n \n+; \"skip\" To skip a test-case set skip to 1.\n+\n [case1]\n type=DMA_MEM_COPY\n mem_size=10\ndiff --git a/app/test-dma-perf/main.c b/app/test-dma-perf/main.c\nindex e5bccc27da..61260fa072 100644\n--- a/app/test-dma-perf/main.c\n+++ b/app/test-dma-perf/main.c\n@@ -320,6 +320,7 @@ load_configs(const char *path)\n \tconst char *case_type;\n \tconst char *lcore_dma;\n \tconst char *mem_size_str, *buf_size_str, *ring_size_str, *kick_batch_str;\n+\tconst char *skip;\n \tint args_nr, nb_vp;\n \tbool is_dma;\n \n@@ -339,6 +340,13 @@ load_configs(const char *path)\n \tfor (i = 0; i < nb_sections; i++) {\n \t\tsnprintf(section_name, CFG_NAME_LEN, \"case%d\", i + 1);\n \t\ttest_case = &test_cases[i];\n+\n+\t\tskip = rte_cfgfile_get_entry(cfgfile, section_name, \"skip\");\n+\t\tif (skip && (atoi(skip) == 1)) {\n+\t\t\ttest_case->is_skip = true;\n+\t\t\tcontinue;\n+\t\t}\n+\n \t\tcase_type = rte_cfgfile_get_entry(cfgfile, section_name, \"type\");\n \t\tif (case_type == NULL) {\n \t\t\tprintf(\"Error: No case type in case %d, the test will be finished here.\\n\",\n@@ -523,6 +531,21 @@ main(int argc, char *argv[])\n \n \tprintf(\"Running cases...\\n\");\n \tfor (i = 0; i < case_nb; i++) {\n+\t\tif (test_cases[i].is_skip) {\n+\t\t\tprintf(\"Test case %d configured to be skipped.\\n\\n\", i + 1);\n+\t\t\tsnprintf(output_str[0], MAX_OUTPUT_STR_LEN, \"Skip the test-case %d\\n\",\n+\t\t\t\t i + 1);\n+\n+\t\t\tfd = fopen(rst_path_ptr, \"a\");\n+\t\t\tif (!fd) {\n+\t\t\t\tprintf(\"Open output CSV file error.\\n\");\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t\toutput_csv(true);\n+\t\t\tfclose(fd);\n+\t\t\tcontinue;\n+\t\t}\n+\n \t\tif (!test_cases[i].is_valid) {\n \t\t\tprintf(\"Invalid test case %d.\\n\\n\", i + 1);\n \t\t\tsnprintf(output_str[0], MAX_OUTPUT_STR_LEN, \"Invalid case %d\\n\", i + 1);\ndiff --git a/app/test-dma-perf/main.h b/app/test-dma-perf/main.h\nindex f65e264378..be89cb2b65 100644\n--- a/app/test-dma-perf/main.h\n+++ b/app/test-dma-perf/main.h\n@@ -41,6 +41,7 @@ struct lcore_dma_map_t {\n \n struct test_configure {\n \tbool is_valid;\n+\tbool is_skip;\n \tuint8_t test_type;\n \tconst char *test_type_str;\n \tuint16_t src_numa_node;\n", "prefixes": [ "v5", "1/4" ] }{ "id": 133437, "url": "