From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0087.outbound.protection.outlook.com [104.47.40.87]) by dpdk.org (Postfix) with ESMTP id 57E5D7CBB for ; Tue, 4 Jul 2017 06:54: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=QI1AidjN37EKPR5+a+RDRTOw2nmiw053/+N9U2E4XqA=; b=EErBECn9PJQiICE4DJTobihPEMqiN1oozdyXe90aGlrmrxwv0UxTapEbRUJoATFAzK4C1xXRzRy943okrBw2wTOMN9folDK+fl9LxqxD27UBYyZSAE8q/wViUMEWPWkrSSVJ0+v1+MpmjHpF9f5iMGYg6jCWYP18WvEpIDhpEpY= 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:26 +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:02 +0530 Message-Id: <20170704045329.24711-8-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: dd21bc06-8a2b-4442-6161-08d4c298c10c 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:wh8hfskY557UXX1sewcK44z/e6e76FQbW2Ma/EvsDyJl3SaQC0o0WKp9mTDzE8PNmG8+qYb17Unp3k2YefOEi2ZUNmHSR9T+M0l02NYfceHkQwcMJtZh7TFnj9O9ImmDUDa3MOSKHY9dhfnXc7ehpLMf82NlqkbLBFEqK2Tt1mZoUPYCi2mrpuuAynbqZCKUDqcSZDPbOK103mCkwIZevnZbbDHP+bAFiq7it7Z3sbPB5uLrNQyyCDSehAjTq3pyS6NtTAmQY6AhCTWce0La/nCeLpRP3JqPkVKCVzRVAujlMqGogRwVGjoNTnjy3cJX1+VeZjMJCVLOkLpbSdogwxwnUoVwDNoVm5yJ64LHKYGdyoT4PVfwqfjZUU2/t1CR2KjXxNiWzqjEAFh4G3kkjgia8fvwC2jSWwznibAo0Gu2qbJtbVR+l48SahNls9dhkqMN6P/hrhonWmlwmgAB4i+XoRbgsjjUcUyX4YCzcsy3DeNotYcWiDrpZOoFNnRweE9UtmxBdgKG9xp5xb4Y91XFQOXLbii7IIOof3M5qhf3ftU8He2Fcnd4q8gPMnEL3dS4TyBFizAkzvzfP0IU47OP+XeHC7R2IisfTUK1zL6RGMzfsPAgiMaytDdWDaCXqM/fONxtIAhXp5SML5evjOByoGxCni3AXXtRQFh7lEhiPXprEcze4fNDtGOzicqT9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B/yKHfkDE4IPHPIlnnwfIzmDzh8vW+jzmUDdDbMH6sXYlcA43EzOo55xjD7ODzBPdZi8ldhAStR1J3RDLsN4ruRWK3hNZh4z00qFbQxH3uFx+f13dJbTnWXv08Gl7Q7hrie+DLARw/pl4WkIbm4Tltzx4JraQabwMOY/Nk8yKL0ve4dUY3m/KrW+0CAe+kFxeOrO+P0bJRGViC2oZMRdAe3HjmO4y8aduvyAeLillCgYvsPrKhzp73fGR8bn+dk2pah89g+hZG/ZPRoWdw6hJ33ZjOj7PNKSVKfjM3zGSCYpROes3qiMSgFE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(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:VQF5blmuzZ/MfTBTV1s+42vcoO1LJkpRCnT3gC7j?= =?us-ascii?Q?otuoXWt1ejhum6J+ZN2Uy3wFg//QyaUHaeOkj0EGREkDBwhkNwOLwfShlQFo?= =?us-ascii?Q?DlbnfsMgmaHM1mQUopOVWeFkg2x7KIfWfKMB7/GmP0Zpd2zGteEt8MziHDl+?= =?us-ascii?Q?TG6bZaelHov/FV+8x4YDq3R55U665FgfrMiznuUIoBf6MGWZLLBlogkOGzdd?= =?us-ascii?Q?7nsBD7tn/YP8wxh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7?= =?us-ascii?Q?b2tvHyaPviYdVUDiO7ERSVP/D2Y0m38xofzVGFW475r6VsSjrwJbgrseRGKT?= =?us-ascii?Q?iz3N8VVmBEB4Q/hrBUoHQxWL/9iGuLiedStg?= 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)(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:gOumfKy+PcWh5+qT7wWUZaxGyv98KbaTq8KHyKa?= =?us-ascii?Q?Vhz2n4+3nn8MgaVs4Lo566Rlx2mJFQ2oZBHFdlfBLlkK5jFPIuM5ktAMsbRE?= =?us-ascii?Q?tqWNgqspN5gaw6P01WkWgn2OFsAptOKAtttenf5BVXF4UXxtXGuj+39aUNUd?= =?us-ascii?Q?AthsKKufRgSVFCE+ZZHsu1lselxg4bEyrx66kcDpQV5eTnC+/sHL8l6MFMkG?= =?us-ascii?Q?cVkQLcQ32M7mlAT6x87J9jcxaN5jYr8A0GvFLPVs+zxB4I/vQsaKtUQgiPGy?= =?us-ascii?Q?xjV8/1wsI0KdIgZoKseTXUB1hme4UCfQom2to+iVfDz/vVGYKZ/Z93m42DCV?= =?us-ascii?Q?0W5NmfFFTMztduyo38N7ixfYx6n0IM/J3aPadzLsl0IK9JFzaEebQHcnlPTd?= =?us-ascii?Q?Vpca/aXBNsQX6sVvQpX32ly6k4nQZvlWACMkXPpNj+R9euyRtJRG2Qb7FpRN?= =?us-ascii?Q?cFjNjoQQHuD9ml+VKIRdiEW8td877JjVm+73fSchEx3dR3C0XRzjRm2cWSAv?= =?us-ascii?Q?K/y3/JJBgdzgkG8cFg3jpzvfgSw1zGSQoU33bHIyn26JWGeIwID24HpxBZVC?= =?us-ascii?Q?UPAlRYekR/quACl5VJXd4/RsSJdui4XWzLncXnmogklrZlEbAPyoed4oMHei?= =?us-ascii?Q?0p8L1ShzizUJ2E8q8AbkGM6W+l8Pj3X6ctUgp9TKVvPqoTEWiLRBL0XGjYvy?= =?us-ascii?Q?2zEiftJ2WzxZCSdecNCGv6WsLivwnhYD8WuxJSojbCjX6IcXY/FE6RYKT/vL?= =?us-ascii?Q?5jzUfTOnSUIlxrg0bHECorDV1401ZdqBQxPjSz0kMy7+33e9nCWPgTk+qafH?= =?us-ascii?Q?fyrC8JM2Zy7YvZf9gG9sXSs870SWCSfwDgQYoPTnUhm887y/vyR8CzLKjbpx?= =?us-ascii?Q?W9vcUriV231RZvL/n3SHpY3bk1zCX2+b0f3swPaFgLgz6WjP0vn90VRD4dX0?= =?us-ascii?Q?IvMYZlfxqkOpD0/ZGKHrzFflR8YT1fXrNXSsv4Q//mIOTV4eBzSPbcUq9kY2?= =?us-ascii?Q?Qn8zodPtOAWvxDQAMP/tZDcQjiyS/zsghf2zstcePKYXyfdhb03++cyEgmp6?= =?us-ascii?Q?6jX7sSyGVKZ595131Sy6dgq2S4FjrzS1jK33HKWb/Y5zCVLAxXBqb/WBF4nf?= =?us-ascii?Q?rB3NBHLJReOBb7YWt9FzmXRMpDIZwRFPNIgczNs3yJG67khfbrXUsnR7+CXA?= =?us-ascii?Q?1mnOqPsnLIXHXTwJQ8/+Xcczseu6QLP+HENUP?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 6:rj7O3OzpRU/m5V+f9R8NTZpf9qDgDXZiYePdcAcu?= =?us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HX4yBiLLke8ZurFw+YsFj4noVmN8GPD8vRmMgWp+KKduC40AYY3Il4AXKsc8hsVgupO1Nti6DvUuDZurYMlHmP9kJFlIMQ9I0N8ajxgrdMCkvj7zt0fEFFNOxhhsA9hGQ5LDkDoAJUZW/5TGNb3ilAskCIID48c0rUUiJ1bwG9sFN8kc1VdUACzPAsjVNN4PMNgGotyrzIbqD7un7ziclQ39rPEyvdF/KEF7C/4oNWMt54wYsa/sUimSj2aVSyX0nR79OTFUWCKNmJkY8cdB6IDFsoVavrFQIdRTLlagJBmtkzUfCMTocyblImHNDAvA5MsHwjdCstXrkPK5SdIwBk1hiM9FV34hgYkqyipBmtTyZRF4iLubJCkbnNxMUSXHoB715NO9bN4cJBf1/WceUpOJLH69Gs379GhTDy0kN1ZypCABARVNCPKCkYl/MAKadkQuF5rvAuShq2wK3Z0W78YJulUNfxP0YsZGd32hOZvuJKKDempKgipZVxbRPpV4lyKwCululqn80jc8g0p19+a1heRl2oCGRz/7nKQ8ytLzCk07T5NMcUXU8Tnhf9wXCDLF7lA+fjsTy+SkL7jzBUgecVhffvXKNeaCjhmpGBmFOo= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:54:26.3354 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 07/34] app/testeventdev: add helper functions to check 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: Tue, 04 Jul 2017 04:54:32 -0000 Signed-off-by: Jerin Jacob Signed-off-by: Guduri Prathyusha Acked-by: Harry van Haaren --- app/test-eventdev/evt_options.h | 102 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/app/test-eventdev/evt_options.h b/app/test-eventdev/evt_options.h index a8ec91d02..a73d559e6 100644 --- a/app/test-eventdev/evt_options.h +++ b/app/test-eventdev/evt_options.h @@ -63,4 +63,106 @@ struct evt_options { void evt_options_default(struct evt_options *opt); +/* options check helpers */ +static inline bool +evt_lcores_has_overlap(bool lcores[], int lcore) +{ + if (lcores[lcore] == true) { + evt_err("lcore overlaps at %d", lcore); + return true; + } + + return false; +} + +static inline bool +evt_lcores_has_overlap_multi(bool lcoresx[], bool lcoresy[]) +{ + int i; + + for (i = 0; i < RTE_MAX_LCORE; i++) { + if (lcoresx[i] && lcoresy[i]) { + evt_err("lcores overlaps at %d", i); + return true; + } + } + return false; +} + +static inline bool +evt_has_active_lcore(bool lcores[]) +{ + int i; + + for (i = 0; i < RTE_MAX_LCORE; i++) + if (lcores[i]) + return true; + return false; +} + +static inline int +evt_nr_active_lcores(bool lcores[]) +{ + int i; + int c = 0; + + for (i = 0; i < RTE_MAX_LCORE; i++) + if (lcores[i]) + c++; + return c; +} + +static inline int +evt_get_first_active_lcore(bool lcores[]) +{ + int i; + + for (i = 0; i < RTE_MAX_LCORE; i++) + if (lcores[i]) + return i; + return -1; +} + +static inline bool +evt_has_disabled_lcore(bool lcores[]) +{ + int i; + + for (i = 0; i < RTE_MAX_LCORE; i++) + if ((lcores[i] == true) && !(rte_lcore_is_enabled(i))) + return true; + return false; +} + +static inline bool +evt_has_invalid_stage(struct evt_options *opt) +{ + if (!opt->nb_stages) { + evt_err("need minimum one stage, check --stlist"); + return true; + } + if (opt->nb_stages > EVT_MAX_STAGES) { + evt_err("requested changes are beyond EVT_MAX_STAGES=%d", + EVT_MAX_STAGES); + return true; + } + return false; +} + +static inline bool +evt_has_invalid_sched_type(struct evt_options *opt) +{ + int i; + + for (i = 0; i < opt->nb_stages; i++) { + if (opt->sched_type_list[i] > RTE_SCHED_TYPE_PARALLEL) { + evt_err("invalid sched_type %d at %d", + opt->sched_type_list[i], i); + return true; + } + } + return false; +} + + #endif /* _EVT_OPTIONS_ */ -- 2.13.2