From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0053.outbound.protection.outlook.com [104.47.38.53]) by dpdk.org (Postfix) with ESMTP id 25C977CC4 for ; Mon, 3 Jul 2017 21:15:31 +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=b/7deAU1oj1z5MgkFnmQimvaGo5w481Bn2FYiOCXSIE=; b=D10S32QIb3skNTnnMQyPdn/7Eoegh7lhSOfNjVb/QdWwMN/E1ir9pkl9J6pP5zNjd2cfQAQ869scH8TNEnhlJKq99WNJCcjxLiryNKwHiMs2GVfsyQuFDDMwkxlk0EqophDsaj4yHqa09KOv4S4trt0RtKOHhyutaDbhBtl2hDc= 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 BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Mon, 3 Jul 2017 19:15:27 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: harry.van.haaren@intel.com, bruce.richardson@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: Tue, 4 Jul 2017 00:43:41 +0530 Message-Id: <20170703191402.3638-14-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> References: <20170528195854.6064-1-jerin.jacob@caviumnetworks.com> <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (10.174.144.19) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3d4fe5d-55b0-4f40-0e44-08d4c247def7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:N1L/C1HkCJglF51MIDMhWOVexwbuIy40v9y4tV+E1t53TP962bwxwXy/ZZhMM/qpMikAEbA0K4D7j6qmDDyylkYq1gKUMgvaqT0C3JQXXZ2CyXKLw6H+oGwjPiVYj0L2SHry/gF72hdpGdq5wNev6F1vuGf35wsCGQVDTvcvY5BTfRJuAasV37S7PkNxbfN5NYxTPBTUiBVJsxxhHSzhi0QFrJGmFBu4cZH/CEwrbNX2AhxoHwdQaoQrm7LXa8BODlxmnyNUzSNzFOCIi74Tsc7PK+jgYy3iRiES0LRMXDxCZHti5/14JR+HJ2sTzq+d43UziwCMYOAD/QFVSqfm/D4hxrSxrYWNPGnHm99J9aw0vDe7fu8mRHh+fIqhJt2GSRWO1RvlAHlT4U4FV5qAw64GKowma8P8pUtJNZeBFl9JwGuZbSAenz9acag1bVodxMnc0mhKVGLcnW3844IuiZm71Z+Dp0RxiU+TYePYCkxw0tldMo3p7LS8VXTXHDBPgQxNi2RyxwU0QzlIXrWZA2DFS0Gka3o8SO/Y1tbgxSgqd/sdLF3NQJpDTUbd6uGKk6gjId+cId7Kg59eZuDev/pyNgmGyk38HJVV/tMUigeiPCMkjne9mmEWAChrUilbPHjFPRBo758a8O1+cFWYGLddlYemCOk4LTC7dAIxF4vhYkELGrwElUVo5Lix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9FNMJCoEZNKXqWrkpcSdfKmowrvYBAeIu01oFBO4g1tQIzxO9mp2f948iwmlcWcjBvcE0vrNd70uBqfPTSmAdiMMQTsZzZ+LDiUVh6bTs6DExYw3IFMsVu+w9SIVSOurKE8fXEqWDO35+m06LsZjkUGOA6RVCvLVzmbnzVBpWPua+28oydkgJom3xvosLA4hG9veANnwpPzF2vYCm5lq1m4/jh4dkI+sCCKysh3oGy8foRLVHd7deC8MGFFF/OkU9RnuruL8LdH2mzqg/wYWyeYAQwnUuO2qEryoh5qifbuv0Np26Ty0vuA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(228905959029699)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 4:UJJjzeYLRVDDFm6YGxFhg596JtPGIoWRZgy0eAvC?= =?us-ascii?Q?EX8IHCS77y4EVZUiYtQeb4D4k3QepSuXSX7rEblB9FYbIIZeUucH28iRj82S?= =?us-ascii?Q?f3EsxCrynaWIq3Jp1NujI5i+2/8qhRa6lypF9mo3JR7+dNZFRGB57vnc4ALG?= =?us-ascii?Q?7pZM+tc0dyyaIPbvxYcM8blgm5ey71+bJB6KnmbfKqRoIodGcrgbF8s7TmSv?= =?us-ascii?Q?Vw0MUtDtapVECzjzpf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4e2Deg?= =?us-ascii?Q?25pTV2TJ7ph258aJ2xhHBHZIbEMJaWJ2wTX3928sAULaBAAzhX4xVvuTcfZ1?= =?us-ascii?Q?QmGUX0roAc5HxtGQ0FWcjsDBGq4Fm4dbrXnDU30bwkcrzbnH5fjpZ6Z7NGkz?= =?us-ascii?Q?O7yKLFMqCB4GM+nsOWM=3D?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39400400002)(39410400002)(39450400003)(7736002)(478600001)(575784001)(53416004)(72206003)(38730400002)(110136004)(107886003)(42186005)(8656002)(50986999)(76176999)(36756003)(6512007)(53936002)(4326008)(25786009)(5003940100001)(6916009)(42882006)(2950100002)(66066001)(5009440100003)(6666003)(2351001)(2361001)(6486002)(6116002)(189998001)(305945005)(33646002)(5660300001)(81166006)(8676002)(3846002)(47776003)(1076002)(2906002)(50466002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1716; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 23:P5/wNCLwG0e8/VkjEs58K4q4SFHwiwMRMIb47w6?= =?us-ascii?Q?cMkmNJbzz28LtNapOGlIgIS0noJcxiF8pAWHryWrm6Y39lrzgo+KrXMMyMv6?= =?us-ascii?Q?Bc2W9X8dHpSIouUKwdhmkIl2pc7j2otYdBygVAgAveMykIqjCMMFKi7Ehkg9?= =?us-ascii?Q?EIlFIbOkNK3nBdoxnnhpPVNWiAvFtas5LMwJb3im2claMwkYLd+31706rP8w?= =?us-ascii?Q?a1CuYcSX4R19+auZu4vgdSeRnDFWXw68qTNeCBzWHuUrtObJos9vcza7jJT+?= =?us-ascii?Q?wSefWBfk0eQjtUtOZsyvCvaiLXRwWYwBrwSIbH61lgkKZ8vYCiWxRSfWMQef?= =?us-ascii?Q?5ewb8FwLP8RWFOnkJYhsbd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GsRgrUF?= =?us-ascii?Q?J4XzDDPpy0UjgDRJpayngbuP0J1z1Y4BFDLRt7ANdfuRIJrDJMmDm74c2l0Y?= =?us-ascii?Q?63hHi6Rlu6+MkeQnKLUu79QLWAurEMCqrHiIWV49IfKag4aTiaHnGZN+7Cuh?= =?us-ascii?Q?+3A=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:+ibpeeBZgetmIjnFwzZMTELxrpKFGyO2EM31stHWq5PDQUX6EubzX5XWTXqOnhvIwDbIU3o6FGA+aoMohL/qgijFPqDvnPG7zmHqpacgAp9DyoN/v7lpCCnFFh4u6VYa/B1gsThFQcbemYMCv715Lp1P7sRKnCPEk0UFdWpnc5q86Zvj2i/LMIKQy/OU8igHhXXvB+Ot8/9tN3x2iv5IsUyoFdFH54ZaasvStYfBXgIvAELbGobNS3eVm6wjE62oyKAJNN3IcUnl/YgRrzUhxaSycLNOak7zIuoFg6Yp8uezpd0w9IUCmYit+bV37aHLAWauujb+2OU1GRTjCYtm/8HU7HjUMa8DMrKw7hRgByWIzZzpBPIHd42ybswpXKx6PXGtEI/zjKU8miLPIIV+EbLD5nQqwUeArM6Alq1hUgLaaPE1UwvS1NjX8CPsr6VIXSuB+Oymx4Y4MslPN5nixGOtfNA323T9Fw+wldBrej7bIniprKTpFDQIJOII6BJZ; 24:kUki+klqO7oUkoH+9chYJvcq7jDU+NGJdCP7xB743FExdyJmdFL5gr5KIxAo9YX4FnaydZRpBXSzZ2gzFkXVjKaQtVyHjQOoodhmGF4U/uY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:pkG5h5O7oBzlEaF/cJVgAByoUHxLRN0+2rBYy0Sf2Qf6oCQUUeBOQqYLCWhG4uoneUeltRoDfD6Iq6r1tSNMAra2dSwmiZClC0SEj3p6uzZC+8shRyEw9zBlz6sCOmENk49mcfe6N16FIr2eewtG/ykTI1Bx70kAavAhtyaC8j2SZ2MdYX9mDyixZ5/JZavmwnPnPI2ErbKmIca5ltuRM9Clm7dOSVL2hT8K9g2OFgtUEperJ31M06CBupbNrSFhI5k+T0+Bi+DMaItw802LI6sPmc9OT3857mS1Vf9daqYUaOz9MzM+fcBEdjbZztnoruro5h9JB1p9jCaynlgSWjFzCQ97J3WW/bid7R9JdWBlS24PKEmOMn8Etkvp/Gw1cHiuR6YpDaiD1g3buA9E2TV99tIXTDpcrGPWXLNVz9DXnqHcmRvpMle7J2xAYmCRSdzdLKgjSb57DjqiBfRbQmTQERF+TXQK5aWOCmCIa3hY1Mhx9R/Omh95O1U/SLJbYxonbKoL78HGff1xdWyxAstOOWijVkqZcWptZMLCn1NVWFxp5v7T8DMxs3Bxz4TaEr6SCnpv09EXOtgyb53n9gJCod0L0x2aC32/ByyP+TVYLo9qEkE9iiEoWYLKqFYEk0V80z2dJNFfnHvuagFs4w4fDlIFlQiielRsnGEtQvf0Ls32cR/+9kssHohQm0wM1yhC81DE+3VFXSgPRrbDS2QtFJtiZctl/mk2zYseyHFWbXusnxIm/sgb1n9197qoOiFJawfrESZMr38kuM4Z/YjtQIGueouVm8CJwRC809E= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 19:15:27.1687 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH v2 13/34] app/testeventdev: order: add basic functions 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: Mon, 03 Jul 2017 19:15:33 -0000 add functions to create mempool, destroy mempool, dump the options, check the options and print the test result. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- app/test-eventdev/test_order_common.c | 117 ++++++++++++++++++++++++++++++++++ app/test-eventdev/test_order_common.h | 12 ++++ 2 files changed, 129 insertions(+) diff --git a/app/test-eventdev/test_order_common.c b/app/test-eventdev/test_order_common.c index b8ba8a0d1..c5d0736ac 100644 --- a/app/test-eventdev/test_order_common.c +++ b/app/test-eventdev/test_order_common.c @@ -33,6 +33,77 @@ #include "test_order_common.h" int +order_test_result(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(opt); + struct test_order *t = evt_test_priv(test); + + return t->result; +} + +int +order_opt_check(struct evt_options *opt) +{ + /* 1 producer + N workers + 1 master */ + if (rte_lcore_count() < 3) { + evt_err("test need minimum 3 lcores"); + return -1; + } + + /* Validate worker lcores */ + if (evt_lcores_has_overlap(opt->wlcores, rte_get_master_lcore())) { + evt_err("worker lcores overlaps with master lcore"); + return -1; + } + + if (evt_nr_active_lcores(opt->plcores) == 0) { + evt_err("missing the producer lcore"); + return -1; + } + + if (evt_nr_active_lcores(opt->plcores) != 1) { + evt_err("only one producer lcore must be selected"); + return -1; + } + + int plcore = evt_get_first_active_lcore(opt->plcores); + + if (plcore < 0) { + evt_err("failed to find active producer"); + return plcore; + } + + if (evt_lcores_has_overlap(opt->wlcores, plcore)) { + evt_err("worker lcores overlaps producer lcore"); + return -1; + } + if (evt_has_disabled_lcore(opt->wlcores)) { + evt_err("one or more workers lcores are not enabled"); + return -1; + } + if (!evt_has_active_lcore(opt->wlcores)) { + evt_err("minimum one worker is required"); + return -1; + } + + /* Validate producer lcore */ + if (plcore == (int)rte_get_master_lcore()) { + evt_err("producer lcore and master lcore should be different"); + return -1; + } + if (!rte_lcore_is_enabled(plcore)) { + evt_err("producer lcore is not enabled"); + return -1; + } + + /* Fixups */ + if (opt->nb_pkts == 0) + opt->nb_pkts = INT64_MAX; + + return 0; +} + +int order_test_setup(struct evt_test *test, struct evt_options *opt) { void *test_order; @@ -90,3 +161,49 @@ order_test_destroy(struct evt_test *test, struct evt_options *opt) rte_free(t->producer_flow_seq); rte_free(test->test_priv); } + +int +order_mempool_setup(struct evt_test *test, struct evt_options *opt) +{ + struct test_order *t = evt_test_priv(test); + + t->pool = rte_pktmbuf_pool_create(test->name, opt->pool_sz, + 256 /* Cache */, 0, + 512, /* Use very small mbufs */ + opt->socket_id); + if (t->pool == NULL) { + evt_err("failed to create mempool"); + return -ENOMEM; + } + + return 0; +} + +void +order_mempool_destroy(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(opt); + struct test_order *t = evt_test_priv(test); + + rte_mempool_free(t->pool); +} + +void +order_eventdev_destroy(struct evt_test *test, struct evt_options *opt) +{ + RTE_SET_USED(test); + + rte_event_dev_stop(opt->dev_id); + rte_event_dev_close(opt->dev_id); +} + +void +order_opt_dump(struct evt_options *opt) +{ + evt_dump_producer_lcores(opt); + evt_dump("nb_wrker_lcores", "%d", evt_nr_active_lcores(opt->wlcores)); + evt_dump_worker_lcores(opt); + evt_dump("nb_evdev_ports", "%d", order_nb_event_ports(opt)); +} + + diff --git a/app/test-eventdev/test_order_common.h b/app/test-eventdev/test_order_common.h index a9dfb647a..ccddef6fb 100644 --- a/app/test-eventdev/test_order_common.h +++ b/app/test-eventdev/test_order_common.h @@ -84,7 +84,19 @@ struct test_order { struct evt_options *opt; } __rte_cache_aligned; +static inline int +order_nb_event_ports(struct evt_options *opt) +{ + return evt_nr_active_lcores(opt->wlcores) + 1 /* producer */; +} + +int order_test_result(struct evt_test *test, struct evt_options *opt); +int order_opt_check(struct evt_options *opt); int order_test_setup(struct evt_test *test, struct evt_options *opt); +int order_mempool_setup(struct evt_test *test, struct evt_options *opt); void order_test_destroy(struct evt_test *test, struct evt_options *opt); +void order_opt_dump(struct evt_options *opt); +void order_mempool_destroy(struct evt_test *test, struct evt_options *opt); +void order_eventdev_destroy(struct evt_test *test, struct evt_options *opt); #endif /* _TEST_ORDER_COMMON_ */ -- 2.13.2