From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) by dpdk.org (Postfix) with ESMTP id B1A917CE8 for ; Tue, 4 Jul 2017 06:54:53 +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=QymwiHKTUlGCZS38auG0qcUVdiwisQqghFpw1JysQZ1N2SarWoQeTA0uUCbHZe+713mdU7ekh9boAG8PaoCMW8W6p02f8eGa7Jyqd4SUrREmczmMRsP4d47oampz/nvjGjI2v1pjClOMKfWO4IdAQEjlAj11H+Q/DgFZqSr4rVU= 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 (106.200.206.49) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 04:54:48 +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 10:23:08 +0530 Message-Id: <20170704045329.24711-14-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> References: <20170703191402.3638-1-jerin.jacob@caviumnetworks.com> <20170704045329.24711-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [106.200.206.49] X-ClientProxiedBy: BM1PR01CA0106.INDPRD01.PROD.OUTLOOK.COM (10.174.208.22) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: efb09dcd-270e-4961-9a57-08d4c298ce2b 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:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:p++KS2k+IZy9yGxaIMnnGA/hN3TJNlZd4/rfixo5F6Ntl+jH7BIpSg5Mfu+LrZLvynw1/8OnE2P4654j8tnJKQRx4YEXX0phPmz/m6HiTft86n1X9U4aNMoCEZKDhag3whGvosOjp3hGLjelFsVsK/+5U3vmMctZWLaDhA5mgxX3Mvm6ZF2oFQag2+uayj7DR3ngK1TPu3NKo15ZelKXXsPjwBHZlnvcNvf3hTlyumSH6dCkN8EgpU5LefErKRv/4fGKs46kY5XcRWvVXEAD/IveAfakxl525yOcX2la5BxrR/yQwq2nQK24V3c5U8e+CLEQ6HQlieqKqxFDpuJszXUdYvPJsQ+vshhb2Zo7GEi1/dQ/iD23QDVXHTb8rKwgRzlQCW07fnLaG2UWxWyYdJnEShBJ2nsE7b7raPFk4BfiLaThPi1oRFs6DQcewMABQceups5EDxjZI0ykYCeY65oOXmzO9HHrL9ppOM0nrw0XLmr2bAp9aPkulhviOYbxtzobNnp25nSpiwGhrKA0UE2h5lVUE14fYBdjl7yqmxK1umtB4ISHsLvqQrHoUma+UAl8dVNuZQ2q1b0omrOYSY/7yAHconfacruzjPGCnYQQe0sHJp5woPnxDtB8p4usu3I1bYc48U6jPbkXnL8SOyO0puf/WEV1tLUcWXfqPmGj6Nebb1FTdHIFestoo7QDXeOTx8S7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YU3Fbzx7FGT9gmWkfz/e470zncJj/mPUu7QBPoxrOTA82yzhiwC7meSBC86QVupu7F6vI7B6Ut+gu7mdaVKOG+VIJIaAt4AHHg/YDkBgTKLx/j98L+JFZG9SRhni7eloNLEwFDXGFzWMkNKJGcvLWYWNsnNAWauo95ZSby5AzwAxwc0WF7BoezegVZfjG14nDsmT4GYCDwCj6/vpCDxLeJVAOTxxOux4Ag31YM+rrAhTZMVeltAwXRiv5Pt3x/BopVZVOREFTyYQJiGqYQrujnXOQbiH8iRer7lKQs= 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)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:hm+jnOn5ImeXD9xDcWriREqcguaWTUtdwGLyvG8x?= =?us-ascii?Q?sLkZdqALFFRsJNb74DiQ+rXmztLQI3tdzPMpDFUaw5hispl1pKhh2dBxn+Av?= =?us-ascii?Q?CB7Uf3lANFEKGFQ1802EyeBxceTCYLFEn67e8d60g8yPQvQHnPpV1lpAURPI?= =?us-ascii?Q?rAOpIsl384VTCxJDeFeZh87Gw59VD8GgESMGVnemiKrLiwRMOs8dop1aTLtB?= =?us-ascii?Q?/JlZL0bl0b320jgzQnnZNy/ue5PzNwUCSRSUa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3egvtvItiC0yfbtUsHpFATQdN5lntDW95sqrnSvR7RcqWvIMgwO3rT?= =?us-ascii?Q?M1UAKwQYolNiL4m6ARlI6/ua/UdJJ2PwwEes47+SE/ybSqVBJZwmZj9ntIW2?= =?us-ascii?Q?iDDoCTSCWh9Xhp2VcmA=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39840400002)(39410400002)(39450400003)(4326008)(107886003)(38730400002)(6512007)(42186005)(6486002)(8656002)(6506006)(33646002)(53936002)(25786009)(6116002)(6916009)(1076002)(5003940100001)(3846002)(42882006)(47776003)(2950100002)(478600001)(2906002)(6666003)(66066001)(8676002)(50226002)(48376002)(81166006)(7736002)(110136004)(2361001)(2351001)(5009440100003)(189998001)(5660300001)(305945005)(72206003)(53416004)(50986999)(76176999)(575784001)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:UoJOKGNGHeBHRsVd1/oy1/YWgLDbWYOuebluBoQ?= =?us-ascii?Q?vsJtYfBx6XCoV4aMtv0B5lFKNhl5cqcwsQ8ta6Kk8r9jhgpjzhwh7IbmotMH?= =?us-ascii?Q?ir0+SZpQE6KFY7pLJ/Z+jmUdfPCUQCOxDylWVXsjI2TrsgEbtXT+uGSXpTyN?= =?us-ascii?Q?bemPzOmB07/aAa6jns6wp8gHBEmu85pWUp/HOZjoU2zA+02KCs2yo56kNP+r?= =?us-ascii?Q?8VToe9YLPFWG5XRjIZc30zUJpxEjt3n7JnZLiK+UjNSp1HsAIcC8mP/u7tls?= =?us-ascii?Q?o/As/nZAttlsYEiZ0wZEPV3cba5/ny4N8pWd7Kt/405hUt+D3KVq+nu6Mk8Z?= =?us-ascii?Q?jp8NkFd5ACgrDT8UCsnVb2KR0jm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3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 6:D1zmnq+vGv2PG9LAvt/f4j/TwIuQcBIhX41W1M+6?= =?us-ascii?Q?TT82ynr1pmljvObQR2hey9qjKI6ck+eAUQa7tvhkswykub94Lo67ikInPR5d?= =?us-ascii?Q?S34cp7Vr+v56ioSGBSdVi1TvEeCrSFHPQGwjR2m/DXrk0cXs5ovqtZ07rpkx?= =?us-ascii?Q?d+M4C+FCgesC6vmfGtfKPz9QuCUmQv+FtqXw1y75KulQyyCtumL05cK2qOUc?= =?us-ascii?Q?G0R1RD1K0rUzPEZc9EsYm8OE+qwFjZjbWV381aNlFeMSrWxcX3gFmZBenqRd?= =?us-ascii?Q?IpZCCIAQlplieJ0dJE6UjSH7NskkP+qEv4zSHpoF16RbtHNlMthFSjvmC+yf?= =?us-ascii?Q?cdtZodHhrQRRIvIXAHjcoO1P+0Tu4aeMEyyyjqnI4g+nWbzz63beq3AyuRU0?= =?us-ascii?Q?aEJEMbzdT9bZz8D7fcj3Lna+VX+dYwJq+oXCssUh5BAdP0Lqti4RlPC+tju+?= =?us-ascii?Q?6eaPAIRnacWO7bUorRquoEP7Z1Xq7jJiFvPQOBB7/a/dEfRx055kSBh7DJBs?= =?us-ascii?Q?OOp1OJjYY5mqMxfnnd0Y6TywKpyB02q6Rfx5APHPAdSAqCU5jgIUBBLlFFsR?= =?us-ascii?Q?phO6ymMNTWEQjUlNovqqGcNAdyeZOI6Qlp7MUQF8LSuT+4hD8919c3APitBW?= =?us-ascii?Q?s+mY0GNWMlrEpfMMwtW9ZkeFGecCCbe+wQTiLkF0OQUEbKwhkmCFfSIjpYcy?= =?us-ascii?Q?nEGHP2zqkXI16Fk8UbQ1WXz7hb65hKLWqHf6BYVZpOZkmeJBE+RKG9bASX/j?= =?us-ascii?Q?baEtcz6EEMheYpi8qWOQVXXnT1P+KglTTlEsO+SqIhAfDooCM8zlHrmwbJNt?= =?us-ascii?Q?602nmz5sCu/wS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T0sBV99xnfqUhC1OJAQG+xwFvnxeYFqST6fEuVJYpHRihNtaSw9LG1lQevnjU2vE5btT/tLWePE1QJGbCBSXd+pwj9tMSELs5FhPpFtq2TlqaDKH3bLGhX2b49jAug5qFksfmv/SugzDtC+hsq8qNjernnwG/wrB6mgNfTE1ZpvLbpWCgwYLy+olHwZk2OlxTDXavZBiH/fUFUqHFITD6n95XLSy/KugXYmekreLPYimwC4QjSz6p+VnYOrifDNxMjdWCG5MDq3/GUvB/xwfn9di3JNWHzsMgehO1KaBpF1a6/CrFGRHFgaX9ZMNPEniYDVZkyeYhRhrfLsy3OpFS+btba6OTvM+y/StR0avotyf0imvBG1tqOVwdczxoNRX7ZDE4L42gK1RXa28Qbc7/OA03E6rnJnJglDcjwruyIoJiWxUXmv1eyMl/KmB83ihlBmmsRATPXmNH1EkMjZ9x5w7DIDBdmEeiX9u0JpKo2iur8EAfwyeBs2/eh5jYLwjpN0M2q1JbAf1GFJKVpJxcXeZL9b/AoR7N2ba+Uury8/LRQ6gSPY8c4VReJFNKO376WvNQSCNr43t4TY5lQV+w8wz942zVnKxLpzqZUlZy3pIcYU6aV8V2HZsmCMRtzBaVA+iXt1iY9Ca/VUCO5Zu28XSIHKnpTWn+Z+vhLTlMKOxwXECp08VE0FXD9cCh71pY= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:54:48.4215 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 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: Tue, 04 Jul 2017 04:54:54 -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