From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0052.outbound.protection.outlook.com [104.47.41.52]) by dpdk.org (Postfix) with ESMTP id D9EB07CB5 for ; Mon, 3 Jul 2017 21:15:07 +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=DLg3qUiSxhRkq0EKzVOUJuxma48CYI38KyiCz8HhM5fj4JOJfflgZNEvRyCkmWvLy/8lTQSydWSAw7DXN/30Xvl8xrt2+4Ppo4utdHXZ3gKhfMrKRGnmv0g0QPdHuNN5nRdb8C3XtmCxt9f/rxkgK2gr/TqiKdLYTOp3EBqMNcA= 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:02 +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:35 +0530 Message-Id: <20170703191402.3638-8-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: 4a9f8381-4ce8-47c3-6c00-08d4c247d087 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:V14i6f54UApDoVK0DIdl9ycSZMpMPFOPAgjo7QLXK745mvdmzrRUV2waQt2prZ/oSmkKylb0UV/HddMxCpXZBWONIzhxTE77LK6ZTOVDnh1wZOk2lt2He1Jf4ANi3iTo125Ro3SZMHLNLfR4uKpi6atlvr9o0vjKzyqlhdDg7eBxANzJPuPRilNo/qBs6L39GaiS+fRaIIUEmzm4Us204ub6k2siWMNUzR89hLfrHAIqPqetKSnyR+jTFTcmkVjLuzy0Gb8MurlTZh+b/CsFuF/pRQZdxUXbAZXK1o1blbrcIT9tm4CHGFBWRRUiyRiL41rolT05rUb0t4qG29zcZCQqv1A5ju9FcnHc1tm/ycAEbFJXongSwKj1xgQ72U5uKut+otmDPkDwIJjZn2C4T/70u3l3rY9lA6WUTm4qZ72nSBQuHeKsnvrSfXnf3mlPINMMnkCDJ5vnuWZ1LWNk6a3OHgFsrZSPGgT+kpJHD4vbNlFCtVp2nKTD6ekfzpHY7kOxlr8YbRaJdWSHNcwWTqtQnqUGuuq/lYE1lq35gEq+hIY1TSGGPKWfZNtB97sv2dRacJw8fRXXV9GzDUmgojQ9T6NR9SqZwGlgXDNWNUekHdLazMXfQuzPuqXFLCzmI5WdSzyhFBW+FtZkXx8XHiBgVQ7pNlU8GoQvlacwEct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lRbJ07EaPxJij1vPysGZRqX4yQ8S+RV6JM4/FfzUVrt0sL6Z5w9MBL99N3NaARBiZ49QAvqaIwo2CgoqkNSnmLZjlZG2xzCTs/4L4dSvcgybXuuYQN80yLfgUI/sD0ze8/lugzIFt3B+FpRXFZiJIq2Z0CQNEwp7D0DuA25fS8AAuP+YzuoWvxYl/+5udDmSy3GTqqpzOGWpwF+RKZXP85FBv9bCs0FpcvCJhOahO9Nhi4Gx/5Wxd+hZd3e5/w7Y5Wq3NMQJy+okqSSNBy5dqWEMp6IqnHBkqhnkiN0XKaIA/oQqckG7HBScDeroBxt2keqYyJJxv4ChLQ= 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)(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:lmEWxp6/IljNxXO3h59wsV8ltSZPl7LHBnqGi528?= =?us-ascii?Q?itp45BTujmjPXWTPxW5i1ljuSSRRnFHRN4s7klX7kx4B8xam3JqNbLoz1eAt?= =?us-ascii?Q?yIAWDHC/LiYl7Hv2iC2eb0No5/X+n0DWTQLBQ5YZQx0BbgVkIJilKC2vT5n5?= =?us-ascii?Q?31Conui6yT5ug8lNaFQUYQr722O9zmNzSyvai2qbo0ydXY673Fdr6OSY0vI/?=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FYl2gOPkphWddCSXhtZvJCf7yupsKaDV52XX?= =?us-ascii?Q?zB5WuRn4pWG0H2PPLPyOxcgOPCOJaighBSmfuKRwt8lALTem9/w4qI+B5Rcv?= =?us-ascii?Q?UNPHmSgiww7MqLz0W2rdviAF6xTbPOLgpuG2?= X-Forefront-PRVS: 035748864E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39400400002)(39410400002)(39450400003)(7736002)(478600001)(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:BI/VecSN1fvp4LK0/AVDfNubi5MZepuA1WzrQwe?= =?us-ascii?Q?X2MMOX7FHA1YqsIKqQarTrSOzXXjJZZvEWU9EwQIAd67h6kkwrtm9GoHcNKu?= =?us-ascii?Q?di+KeGNZPyQ7Mb4fRWy5ZLZdo56daztbfzaeds7vkXCgD/JYG2DU3fm+10lP?= =?us-ascii?Q?PeJ1sB8azItUX1w5j9dU8jyQIgLnKDRLtv2OoQr4kyx1APBKQv4sE9W20ek3?= =?us-ascii?Q?h5LjtPLxlo06Qu1wvLtfAbmVa8k5oMkBrXXkEf+nyfLh40eSJBupOqQLjM8A?= =?us-ascii?Q?Z41SVFJGscqZsVTBnVsymNZinbCSKlaB8E76Xj0S3Ej5dgNveItm8XGGgTe2?= =?us-ascii?Q?UIGMRhynWynIwy8G/cjbo7nlUZmGroNPnuPpUbWE0PmYXWSugR/MdLbBizvj?= =?us-ascii?Q?CSYzYrptimlCVRbKOHVOOAbOjrDJt1IiAch6UPY3GAv6bAN/mV67CIDwUUJR?= =?us-ascii?Q?nNASaq+G+mlfxAAoV5pN+G2d9TNFqlkdT5bCXDDa7+I0S6zp/vdAoWIPdhPF?= =?us-ascii?Q?dlYssXjZsVYa0rriGCyVSVTpPwx+7RYTvCjvAYtUZnbk8pCmvn71pbGB+M0Y?= =?us-ascii?Q?QtFreb+Bo1qsUg9B3uu2u5Od75gTCFRFLaH9cg3MhuzPOqPBRpuHqTH0TRRB?= =?us-ascii?Q?v0GYzHF0letSuc793FKAu6dUQpMnlX1JZ+GpUXMzI+3/oqE8fHguz7/849f0?= =?us-ascii?Q?TLLGdYvg00FVo7HNdaRteveaKPxa4AW0a3eatHGx5MU+Mos+C2fF+5aV4TEM?= =?us-ascii?Q?z9/XqNR+7Ma2GGtK5VDqo7Tmp3tIxYi2lE2h3f0u3r3y7oINM+lKVUNoM7L4?= =?us-ascii?Q?gAZGUWq5tSsshn1p98hVMiUZDWdHscc2IPvRZZbQmGhuRSzRrX75yIX6JkKb?= =?us-ascii?Q?o6gHHWf9tDYkBcXnw44B7rehaTkFSVxhwGc6vkEE1b5adgrCS2RkdKsLZz2l?= =?us-ascii?Q?9+5czIfx65BWZaH6k5tfZcQxJSJfwEjvbriiCR9unqtoYpkK0vP4qy8sP3yR?= =?us-ascii?Q?Zuit7UpCPEvdjLeMQZf2SRG3kuXHm/qJnnNYh3cVYcXunYttcWmE+IK4nnuS?= =?us-ascii?Q?goN1ZPGA3q+0Fxt2yfm/gcCPKe9HxOc5YbzM7MBEra27HH/W3mGaet7OKP7Q?= =?us-ascii?Q?x6rpMdYbWz44QJYi+dMSn5aLW4pUcvRp0pDs95UU9WquZLSUij+ukKA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716; 6:VTQhG6DO1EZKK5MOM518DugIJC2TyhFgN/9k7yr2?= =?us-ascii?Q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6Rx1ZbX8jSJvEhiwE?= =?us-ascii?Q?PrEW4v8XRhb4YpFXDP5+6+QY/8+VnTfP32sjmmn0TAywIalkkZpJSqul666z?= =?us-ascii?Q?Eyw=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:qUHKvHRmKLha4BQC2hcgdLHBYmpPy7xPL2jC1wqM6nOpBkyez5TVMuN8Jvr5DFfee2NKG8xhSvfHJ/IC5D0JfvZvWFrBsEnMpaCf/PEGf/PUMudZriPKVZaltCdQvyGI+grKlU73Xhj9mMf3ROUWtpS8+mtSlOHZj198WQu+joiVWg1TA66WzJDdaazrfFN+faZAsRhZbskhRJzUqosO78GcG2asNPr40AbIRRxsFyN9TnhFXa4b98H7fXNlnfNLC9lbyRNesmGIOUiYoEnILm7J9LEU/DX+lW9iFw3YSr2/yhGD1Itq+m2GpQqQc0QTBLq0k9/NFGhHcFUdZCN3MWjzbUiQoy4ksWpWrwHqExi1Q5feD8SLxUvHdysk60LlGKifvQ/ycmB4yujd3rKsMbvCLTA564iy0XChuhANlqQPQx8Fg1sTkkgKAtIt06r9id6JnVn9/st5T5w0KAC4qEsD0KaSrTG2IT92OyXtM8xPMqZEhsPDgxIlvrXAdPIU; 24:fsYSvPVphu6YsUdurjpkNInZNRRyydZgqbu+yUPfiMcrjUbJvjh0/bAhyw4RNOZ/4q3UiZAR3WY8UPrFQFXdnYCRIzK4UadTJTGi8aV1j6M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:/Ck4baDZta0+TyEVP5Gm7rUUzoI/MWxeuNgP8EjLDauHC1Ldk9ksPTh+aWQwzefKsRstnkf417KFPyBWhVOinM9wK/SI7riZMa0xkh9qmnVyip15MNpxRPEYZScwzmXsX8s00v6LvpkgDphkHbcEuMAhPkGv/75CNW8Lcc39BRC/80qLtI78G78Tix65vpFttr2oJSPCASg9wOJIMqCWzqVfqwCg3Ha2uc6xYNROHvPSMjh2Vmp7gZ935c1FinEcFfqzXOmAjjMnbWrfyh0YI2voL0Nij4NFZm2VLWrpIjFOD3Q9sgt+8PJq31LcKYLaN3mSHI1Mcl47dZSWv6C/YXJJ3yXRHcnODpey0HB+ykwCamVb/pe/nZNnuns/103/qCVs2lScc4i7HFe+TBNfuJwAODyAY2wNPbINEaPHbpEm6NJ6UNMR5NXFmWACLVnV5yCg19TpiSo18occN+XHlKs9bSLMZ1a0p3dxqm85sVdzl2P1oOM9cc0Nb+DDcXd/E/Yj6Ud6NvUa/B/5fCs8pFFn7EEsb+SVuX+nc2OOy/qtlcjJnqF2qvOQvX17FMsdWObtQPCZVztYCmR8YpcdpO4X3ejzJq4wkGEvSAft/iCGrvAjThRg9dEB49btwaaoUunTSTbN3Jd/FKL5cvtqIyx3P+790Qca+IR3Egamu91LDiov4aUv/eas/ARikwlBAjUExG/z9bjD1LmQn5fXtUiZXaH7QkMSH8qlSRfBKSDJ3NpUppr9ywB+9kb6kGdpFfrrt1qNzKat5NIw8nMYs2Ya5TMrpjkGmbySwXHaI30= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 19:15:02.7927 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH v2 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: Mon, 03 Jul 2017 19:15:08 -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