From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0060.outbound.protection.outlook.com [104.47.41.60]) by dpdk.org (Postfix) with ESMTP id BEB157CB6 for ; Sun, 28 May 2017 22:00:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=otN7Hyg2xZgYPOfM2QPGRz6PxBNn2Zqa8ulSI+Coo6Q=; b=DxYr4AvLGTSnwiM9SK6LcoSWF+e9aqoJJloaGQM2s6jaMF/kr8Y/CXri4jk3O6SbXrd5vwJ/f9jWDg8WyfaKeSld5LmJ1eD4ZI/aTV5cZ/RtsGSYUfT/DnNinNb8DWBglm5bIoAPKl7FVXr/k+oRd6TXqvPwiTQFiDhMuAqllDQ= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (111.93.218.67) by CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Sun, 28 May 2017 20:00:08 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, narender.vangati@intel.com, nikhil.rao@intel.com, gprathyusha@caviumnetworks.com, Jerin Jacob Date: Mon, 29 May 2017 01:28:27 +0530 Message-Id: <20170528195854.6064-7-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0003.INDPRD01.PROD.OUTLOOK.COM (10.174.214.141) To CY1PR0701MB1725.namprd07.prod.outlook.com (10.163.21.14) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1725: X-MS-Office365-Filtering-Correlation-Id: 155f3294-e6e5-4755-ff4b-08d4a60426ad X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 3:RlEQzHJRHVa8S641ZKoXrp9FIWX/YFEK00ckcYFYwpC1TRpCMeTXMxfxP5FrbSTirAemX14g+7g+mw/my4YrMt3KhCo/VjCB/t5xttKiKNSZE9k9byGjXfWSs7sR+mGyJ1WrTHvPoBGxTsKvXcm6++TSYgzFKMUowYPWsA1uOGVI523zWGUQRIzIeIe8EVTtZIgRAUz/VaTr+3HzQnvpW2GfCdIMWKIQxgV0eczmtisYLlHD6Sc1jmFzz3Qj8AvC824jCHreEAxrNkMVmOQXVBW6c6sXW5Pi2+ow4cFoaNaTCsKLcuPjsO5uh2S3PMBc93XbrElT3PkB5WxBOKDclg==; 25:bk95bUfOpkqfeMKbDvJ//U9Ma0w9w/wTY7/CZkD2qnF+rjjuVIvj+NpWUcFrKBRmCqUoXSyiJzII0eLZX/HxU6XXo9YLfXLvK/wL4KzLiONpFzgLUdxCsh9rZkBdnpazMdkKuosZ8UndRW61lSVnaAK9zBQtbKoEiJZI3tcD/dykZfsqKeBkthfOThLUSR5fEnJau0WS1cxQ6Yd/1uFKbg+mEOoSAs3jKq6rv9detadjAq0V1bdLkpEhlg4tvEBXrY9NzbD/TAXRQ67H+VKax3PSgDiDMkhkCjthIDzIj2ey9YpLqyLvdm3ssTrWNPV64qE4db5D37YBN6PP2shnVvzSk0Br+FDIWFC6lcYFZCPuRJQ2bVbsQt+AzCN8FFQNZcHYIUufWAJ+edDpg8QEdjGlxQ3D+04NmX32NedCoi2lzj81M7opxd94gE3qmgipyJ2m3ZOU60YPuTpCW3S9iA/Q9nzGRm41kMWRh1pcLvw= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1725; 31:0dgiMaA6CVAR6n3twE/Qb99jHMA6sI2eexo90+vs/Dfn7BdjbS8lGvmQLsAd1MGgLXbiDJMIH08A9V09nKuGU8HCIZH8T5nXkdF7cZqNosUJaMACAIN/T3NYJqPYlBHF4U8eDVrxKqiCzGLnKk7G+w2PzVsXntXIm8wI4yPBpDEkco4y2sHUKFsExkELY7+OqXGw7Tl0lO7NZXScvOo2cWL4FDq266SeMOIQhKHLaXw=; 20:mghdeGjqgWl1A4h5jzmQ+MnPlGlggo3vD7LKU/fixWUv0CP+hHLHzfM/LDhmYB5OLjcuyEL6xFQ1UNtze5NirJKqCMMb1Wi2Sku5F9T3bUoV/5rd1650FqKg2Lbm7Yzy/u8PCVpTEzAcFV1tmob61QVbCRbNW7Fz9Pk4Rwlth3fpFBhT+hTZxtE0Xe51/Db1gErdt8c4O1VZByo+2Tz7RxP4NOipcD2BbLIPTYICyD2R3c2GIgQS9CTDJ1oCzcdNUMatGUGyZ+mOlcrbCsGfJDKFRC0zqVzOSWb9IoczzszVLze43ITLNQgDmrUQXzC8EWJrd4TET+1FP0fjQ8v/DE4z0hmj3hgWQpGtCNM/l97pQx6wKUGmf9RPK6nmqSib4ymiYG4Ix/0cfltaRxLh6GpAOM+4ktDZvYOrwPTR1txL3eRH3/FZN2AdUbeBawq0SXep7JLNbNq7p7SzynN88eaNMFMkHFmTR8OyR6Qi0l0mk4YuoadTw0A0d7fvQP/M5Z4OVcI4L75oDBhrwlAVMgxCEDRBhMmwRigIeBgAYTvPmNnn/VcR7WbEsaWbRRgschXhWecc+FGNnzJ+oTaeqybM9ZPmR9JRCM74Zm02iSI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(100000703073)(100105400095)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY1PR0701MB1725; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY1PR0701MB1725; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1725; 4:mhrLynxEdP89WQadTSVFpoc2yRtdg5L0RGEJdApR?= =?us-ascii?Q?3w2kNxpKNSdXQ9+dUov/TkprolPf+XonA9cPUTQDUGAaHrgFo633o4A4S9xJ?= =?us-ascii?Q?kSJc9BoZJbl6ULqPdzqZmFYK/xUiPiDrr0wvTiNArTmyFH4/Lh4yg+QUlppZ?= =?us-ascii?Q?Js3OZh6S1/+Fqz1VEQvb4Qq9dN3iKndhuzeVqvWJtJxfufNjeNR4v1awZTFu?= =?us-ascii?Q?dyzWw7W3muDQAQX0ayEkFu4W9hT8e7xeNzPtG1LcH1CmBOD3HfpL/+z8wZ4d?= =?us-ascii?Q?nLq3audhEqKaIRRMvawdIflbVoteLyNsbZkTbmM9ZVuGbzN3HUyPvIAVp/lP?= =?us-ascii?Q?/4whM52wdWGe0aD+SxFabI2szVwbO15p7sIiCLKQmvmikYyOeQHm9jA+90/+?= =?us-ascii?Q?aaM9USUE6X67z3rWI1F0UUEmbSeWYv4TU86zgDEcsu5YZ0o+Sms84VE7jo2W?= =?us-ascii?Q?xsUIGCjY1+sKduD7IOFp6nNMHc4GxJvxaKr/AN0gXyZ5u9nJEhPdH3Bplek3?= =?us-ascii?Q?OrUYMj3rKS84XyKut+8etXAC4FOW/dFXk+g2UslWr4ad6NgapxRZpHMI31Uz?= =?us-ascii?Q?MfMyRIWsvFFw9JJCVrOXCNm0s6IaiPCtpyd0/PQ7nJspkm1RMGxrM5NR/pi8?= =?us-ascii?Q?p9u5XfMR5vyBxwFOZgdpXA85SZN9jWEURi++AoUDEUabNcQrgMe9N1P3Brux?= =?us-ascii?Q?h53ByncECurOMQceoyFMaH2lzw9esPsiF9WzR8yB7lFaJ47/vhJFRcMqFD+N?= =?us-ascii?Q?ZnWwf7Yx0T66wqcZdEJoOxhjbjQgU2rf31NQ/n6JkeHNK5GUkvTU419unhQq?= =?us-ascii?Q?7AYVU7VbSytLafEbgemFPztxtYR9TEezk4OkXpdYlc2sFpB38c+ct2qK7nKE?= =?us-ascii?Q?/rsWU5uqWr3/eug+bONC0hpeA2J10SI9pHF7dKUbPiWRwhNDdpeQLYIDQYAH?= =?us-ascii?Q?TlMInAwTEH8QVICt6oSYJFXmVWgC1r1upoLCjhaaH42TmcDcN8mOd7DyJy3T?= =?us-ascii?Q?tsBHevtYQs3pDhZBCKBMfSJzQRI+QhnQvkBuCcYeDXIh5z9HY39bc1Eg8xG/?= =?us-ascii?Q?qXJll2+iexzMLGc1NxnCAmVX7KMT04W419K5ad8ru4vUTWyJsHYUzjT8RhSH?= =?us-ascii?Q?6h1NdJluV1k=3D?= X-Forefront-PRVS: 03218BFD9F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39850400002)(39410400002)(39840400002)(39400400002)(81166006)(6486002)(66066001)(4326008)(50986999)(76176999)(50226002)(189998001)(72206003)(36756003)(6506006)(38730400002)(5003940100001)(5009440100003)(110136004)(107886003)(42186005)(53416004)(7736002)(8676002)(48376002)(50466002)(1076002)(3846002)(6116002)(6512007)(2361001)(305945005)(2906002)(6666003)(478600001)(25786009)(5660300001)(2351001)(6916009)(42882006)(2950100002)(33646002)(8656002)(47776003)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1725; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1725; 23:HkNYDyBP3LNBi2Y6YCBJRPGXyEkNU1VgFrVHGrG?= =?us-ascii?Q?e6FwdCFSq80RF/mb5no3pmLX0bTkWOi3VyWL+Rdvm6jyh1DUliKZGgvyciRl?= =?us-ascii?Q?fGRGdJr6PT/L2aIHduiO8PHMJJC1t5kclI30/UfSTy1oZaBckeSQxe2s+J7P?= =?us-ascii?Q?4NUbMB1w94Jgjoo18mmCzJY8NPqwUZV53hR6N8N1cVmupG5fSMe52oOXwiEr?= =?us-ascii?Q?DTlWRJZbBKao0ZPJK9HLDd2L3LUewl1G0jTM8KN6rlpTIo/TSBF0EyrGdPx9?= =?us-ascii?Q?T8gM+2CyaIo7ckho+nMV3OMOo6NPwSoDqdNCSh+AgqzBNKhaRsQjbXTZqBrM?= =?us-ascii?Q?9Gh6O/upyALFirgRBM/vBHGBy2OgILbaS0Xbh0e65mzTSsqm47aVh063vTR4?= =?us-ascii?Q?RjlMWPgiEEXU+lg4mk+l/WDuGm932ITuA3sQTBTH1qqROQhMXeFTopI7A5jT?= =?us-ascii?Q?T4J7hphdx7ynJNHt90Jge07FO0StfZ043SobdEcgQY9gRXCziDdyd39ZbUZF?= =?us-ascii?Q?m+8ojbWSTwP4kDve+sNAckDe/DHeIEhWEtne2mtxi6K7FMudjSkpB89Aefmg?= =?us-ascii?Q?NxGpkSiejLPtZIa0N22rDnErQ35HN0re4rQEJ4RKk4/LIjiSzrvCVJgO+La0?= =?us-ascii?Q?GMM6k/5MxCBAk0lwZBRmjabN07YOpxNHTkHvTHMdv/xjOaBaDnq9ze1AT2sC?= =?us-ascii?Q?VLDbZzIK5uP0D6cwfvjUKHFKMKiRllgHLWGHy39eBe1TfYp+jsD/vDVEzsI8?= =?us-ascii?Q?S8J8sgQtEyuFld5mJ3CqZDtU5TPypY1vmdwmvQTjKnuUXS2FNBURJVlEgyBo?= =?us-ascii?Q?AK58wUdhmemLIOxv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.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2017 20:00:08.7349 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1725 Subject: [dpdk-dev] [PATCH 06/33] app/testeventdev: define the test options X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2017 20:00:14 -0000 Define the test options that used across all test cases and fill the default values for the same. Signed-off-by: Jerin Jacob Signed-off-by: Guduri Prathyusha --- app/test-eventdev/Makefile | 1 + app/test-eventdev/evt_options.c | 58 +++++++++++++++++++++++++++++++++++ app/test-eventdev/evt_options.h | 67 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 app/test-eventdev/evt_options.c create mode 100644 app/test-eventdev/evt_options.h diff --git a/app/test-eventdev/Makefile b/app/test-eventdev/Makefile index 2e552a084..168e56416 100644 --- a/app/test-eventdev/Makefile +++ b/app/test-eventdev/Makefile @@ -39,6 +39,7 @@ CFLAGS += $(WERROR_FLAGS) # all source are stored in SRCS-y # SRCS-y := evt_main.c +SRCS-y += evt_options.c SRCS-y += evt_test.c SRCS-y += parser.c diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c new file mode 100644 index 000000000..103adb686 --- /dev/null +++ b/app/test-eventdev/evt_options.c @@ -0,0 +1,58 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium 2017. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Cavium nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include +#include +#include + +#include +#include +#include + +#include "evt_options.h" +#include "evt_test.h" +#include "parser.h" + +void +evt_options_default(struct evt_options *opt) +{ + memset(opt, 0, sizeof(*opt)); + opt->verbose_level = 1; /* Enable minimal prints */ + opt->dev_id = 0; + strncpy(opt->test_name, "queue_order", EVT_TEST_NAME_MAX_LEN); + opt->nb_flows = 1024; + opt->socket_id = SOCKET_ID_ANY; + opt->pool_sz = 16 * 1024; + opt->wkr_deq_dep = 16; + opt->nb_pkts = (1ULL << 22); +} diff --git a/app/test-eventdev/evt_options.h b/app/test-eventdev/evt_options.h new file mode 100644 index 000000000..b38dd4b04 --- /dev/null +++ b/app/test-eventdev/evt_options.h @@ -0,0 +1,67 @@ +/* + * BSD LICENSE + * + * Copyright (C) Cavium 2017. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Cavium networks nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _EVT_OPTIONS_ +#define _EVT_OPTIONS_ + +#include +#include + +#include +#include +#include + +#include "evt_common.h" + +struct evt_options { +#define EVT_TEST_NAME_MAX_LEN 32 + char test_name[EVT_TEST_NAME_MAX_LEN]; + bool plcores[RTE_MAX_LCORE]; + bool wlcores[RTE_MAX_LCORE]; + uint8_t sched_type_list[EVT_MAX_STAGES]; + int plcore; + int slcore; + uint32_t nb_flows; + int socket_id; + int pool_sz; + int nb_stages; + int verbose_level; + uint64_t nb_pkts; + uint16_t wkr_deq_dep; + uint8_t dev_id; + uint32_t fwd_latency:1; + uint32_t q_priority:1; +}; + +void evt_options_default(struct evt_options *opt); + +#endif /* _EVT_OPTIONS_ */ -- 2.13.0