From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0044.outbound.protection.outlook.com [104.47.41.44]) by dpdk.org (Postfix) with ESMTP id 9C67958F6 for ; Mon, 3 Jul 2017 21:14:59 +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=sijCobTS1SmaVNgZrzr8Un9H1Lony1TSXFWqOTx81Cw=; b=K6RD80f7OFrzrCkhxQeEAtNf25X0vVzCV/7lLFWv7yAz6O8w1QYxz8DvkepSor34sepoJYGpFSn9waT2/2jeTXMob15E55o6hxdd2IIfvIAV3ntvJnD9i8NxOXThBN4UOZsXkUx3JdInrIULCjs6VTPQqIAUveQ5PbNzeSkRgiY= 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:14:54 +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:33 +0530 Message-Id: <20170703191402.3638-6-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: a5022057-a8c7-4f33-352a-08d4c247cbcc 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:k8YIih284JZ6ZNXZYez3B/vWL/fjoKey2rgShlM0GwcgueZwHPHvf41fBxOFswT7R+jwlyFN/Fvm9lmQExDBNjsD6pvIVeHhZv8qS0622a022mW1xDFMDVA/S2oEivBBN2sny5wfcaI9FxG7EefxKoh+/KaVg/WEIwyHLwC3cxu/OtDqtL//Wy1d6So2dFbG1aZ07hMM9Wcc+BFuAUgIf8bi+N0Okc2aGyVEJMPpN6OjwqM860/LPXVcqHs4Q7K43j9MdkEzfpCC5LCZ7NkjY3dVkUAZ1klP6ouZCoysNLE5261+es1+GGSSidxKEf1cY/qnCfGIhSLk3sO9Em6AOnJjXyIl2T9pxweGWV2D5XrVbOlQloiQx2IuE/mC84q4P/jqZESVSrJhxmx6/xr4ZuyVqqtbwm/dV4rrVOnnmg/LCaKFJMHXtPx9+Ph+yV9XoEjzAK7lSpiPJAiRAoJwJQB1CAwvPhH+vooobSmt7I16SlDXy50LJk3VxVIi4psUMFSBQlY4pMQNADWFfGFLMwxQZS7fWa0+jszPkVaENyvfuRGmITM8757zigynsEFfaT2pcnY+4SOqe9tgYe4/L7uoJ2hCRLlIJYyoKCSOnOKyAEpduaqW0vSV9rX4UFfOKEAw5a7Rhe9hXJGJWfkSvYOUGwpzZxf7rTNoXb6sdpM/QMZYK5GLHw5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g76IDmI18UrzcmjXDX3gXY7fWDf5rLv46titU1hj+ogxh30XD4nGsmYXj2kG1P+VWqZ/1d1WEeaV33SRQp3mFgPOg8GbUt6ySi6B+hMBYdPMIwNdK3V98aOwYKFMJWOHgRILf+fvQDqlU+qCDcRjt8+qhpJvVZNqaLNw+FYyBfjzEVwm3ThbZHwYf+zINtRrwIe52gPzDUohXmufzay1UaeQFzhUI6Quza+r0/nr4yyFAUvDy9z0k0wMOYo169AuSEhVhvV2tW1oGyuYNSNg5m+OlFjzEwTes3lmQ8CC3VN7uu3GkhdXK1zE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750)(158140799945019)(228905959029699); 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:ZfkajWDh37yjmIZFJjmEFHqt7mvnrmrLgfWn8O0k?= =?us-ascii?Q?tEnHXj7nJdnsc8RJJdQTmHvqpJ2FJOPrJyWnhHwziAw8ZhVrlNqNZBnOHQ5A?= =?us-ascii?Q?ppmhoqXXKzz/DL6O/N9v7P41JMrOkgOZBWxjTqVTm/8a4c4Tkhk8ipU1SSJr?= =?us-ascii?Q?FupNQVSXjVc9vHeXTBC9SDhUz72felgSIZl1KMm0ExkH5/5PUYYQDTWuIcsU?= =?us-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eoziJkfuHVmxTuCG/q?= =?us-ascii?Q?E7yWHxMnj8q/1Dx65qV/glYzKa67FIwnG/xB2R2vBuwNjt4mTnAv2W2DOA1Z?= =?us-ascii?Q?/lUjqDIDadKjeXu4P56+OfsRUARO/7Lt+KWBcRCvUNqO1Tq6Q0Cm76ma54kT?= =?us-ascii?Q?OyYGRCmBnsnAHX1dWoj6rqDPmwUl1a+C4YDXEUaw?= 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:qiR1CK6xyzraxBTtALhHq21J43jRP0xUyJaBEDR?= =?us-ascii?Q?HcinZqFk8NbCPD6NDzs/UxmQUneIkliEIifuvrDy6zPH5epd92KC/39OwQQM?= =?us-ascii?Q?Jqf12csvSDCwCMPgYcK4+eh3IEyZtUdRek9/Ett24i8Yd+gPtSTaop1uCSD4?= =?us-ascii?Q?lBZgwAhbWYVsw8GPwZnmEe0LLifCzeXUPOZDczQ+oLjwpVxtkeq0IhxN84KO?= =?us-ascii?Q?IQbuvgngj7mDfJm7mqmRdANWu82IymxrfEcIa0RAHHadmifiz6WiYoqfg/wi?= =?us-ascii?Q?v2jr6keTFloudca6j2hopJ2WOY6jKHpqdU1SOF6GxuAa9WjBiasN7t9wcL2t?= =?us-ascii?Q?sTDnF69OWwPGmF5y3K9fIrPkqKmW8USnLKjxUvQalYpVv9YJK8yD933FWR+8?= =?us-ascii?Q?mBibDSZ0j00eQKBIzm9gv18nImTm4tIlzS723YwS3FujwIsevfZ16vISmYZ1?= =?us-ascii?Q?cCHGcCZ8Msf4JAfpbOr2A4NAMjwId5PqqRzBOcItcdOOySiQhoezTdpSB1Gc?= =?us-ascii?Q?X6p9Iu1CfilydUTHAruRhhXIJSruWIRO3yMsu/PhvMIWbvSfrpNVOgI/I0+u?= =?us-ascii?Q?TwKUkyZ7xrjCerGxRo/RUOt35rngTLlOnxf4M4hTXrBq1Xsrm9b1VPgreMBA?= =?us-ascii?Q?3aEQ0mW20ev4+NNFuvloAAM037FihqSHxjjIum+2nk8frxlEQzEMdq8TLbJK?= =?us-ascii?Q?OqpJw/eqM01LzgLN91UrC3XfQlgfZcZ8iF9lNO0u0buc6w61gQGc4SxCr5Ep?= =?us-ascii?Q?KQJRsRO9Rxxv0HbVT5UOzxcQf22vAoM10yrMDXjvrOaTw7jd9lAa5Ek+xMDD?= =?us-ascii?Q?wiNXHOqqLm+UB/Dwvq4z/cCuqrBj84B5eUPoZWyPOBDuZlSHZ0gUWz6cViyQ?= =?us-ascii?Q?rKHiE0bNLlrik8cIKKB9dYkRNc+k5BVHSH9eds9DRtnMliZBw8hIlBObGBOh?= =?us-ascii?Q?p8xdHtWF1tshudbfD5rArJGHHVoQZNloSLe1WQuE4qLL2/ptI5XTCHBT/HmQ?= =?us-ascii?Q?tvNjnKOKNcxenpi42B9S0ffGHHpsyay1PQ+nsmaWWkTJeSonj6PzAljQTTtJ?= =?us-ascii?Q?P6GHEwEK2HiPA9e1EzqNKscrrINT1ZdIUAk4KHFefR96e12lSSrABU1pgtzS?= =?us-ascii?Q?RzAxes5ViL2lz7FQDHTXSUv/z/Mfj34CwqUS5CGj0Pa/q2lskd8kvBg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1716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?= =?us-ascii?Q?b+hGHiXN51/QQcVpbUEkfd1FgsF7UO3bhXwu4pV7+1u9hM3ngg/GxPJySgW5?= =?us-ascii?Q?uAPYGquZi7lnRHNul/KgSYhlDuwegc1MCPoutRi/pnORD6SA9//H0rABKBTw?= =?us-ascii?Q?R1M=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 5:d5TU1xHd6D0FHo+hxtumO+p90P2qgnykWr3we8fPCT8EqW1E2WhudY2KBqPvJLQAaO0tdKDLnIQwKr9m4C40P6Bq7mlbTeXdGTinWt10C7xu3k85g477f+5+6dUhV1wAewkViSkZzAGXahOlhKp9eC51xT1ltWf/ETy1/zYReXFL8dknwAYj9flhSmScH6JvN5nAx/BAlYLF1CnBL6hqNlh9F1SC+CIIZwehAnKvBEO5kxgejbmqv+AwCs+Zd8TS4jnaHFxZ146Saf/Uz9byvvScEM/42x17E3OyNNbTinLFweuf9rSK9xvEb549Q6llKuzPo+lweDimE2py78qZeFwLA63tp/26/3qtLCpkrPJ6E9AMl+0urxcP5DgX3o2w7F0QTXcJkmXawtjx3Fk7tpWbrn7gI77Lg6xypgHfEn9h8jyYTNnqTM+Ara+iEXRfajNZXqZewaoTBynUUiJK9Uj4kgJwzTEjVAAKiItmIen0stRlxJboF66S9lLB7Oku; 24:ZeuLcdnbJy31fgv8u/GCNVw9orVFrJrEWlQJu5Qyl3lDF0VTVGX7aiu9pePbEjX1QlBK00un2otjThxvapGG2nAg1DOVvncelavix+JDTZM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:iLcawEURzgI0bkk1UymygYpmdeHenuqkVXjCeemxV7XpGZhe/FgtDMsQqkzyLdqA3/LpJJlVtu5j+vr1vDmquXLJGBcUP8co0jw6e2IYP82kkJ1wjYSVqwqi5kNV5JKIHY0VGsmiNzMaj0jRzRwOt6zWUady1ZBEEmMeq+K7VbNzZLkZ04QwHoXwUiuSy2w8MCBf3Mr9bcVzrPSWmW0x3lM94mAx7z14tKQ/8x9P/6DY/MExFLplorAemZItdY4j2K6ezNttwRG4fCiGMQVMia/WGRxj7f+ODzVv/lWrQXRRaf8wiBthYnW66Nwva0GGXZGoAsHB9U0IsdtNTTcw5x3fVovszr3v+MmLQKoZ2dufvusqMNPGiwbm+ERavQaDuRnDCyVEA+BNsMaV/xMYKv+FJsLzpO8LJUaMifyUa+xG5AKDn74+B6tVyajAuwGBwX7gpa3d/VWPj512m26SSPHnLh7RR/5TcBDTFhWzDVi3H8XgdVMLoGhcLJ/G4N+vLcfBihejQgo8yc+zsj1hzonM7EV0uoAAiXXW5MhZlJj3hfxOY6570nimk3fR14rB3nC9H/EFQVHTz8aNoAeRcYC7EQr6FA4p0T01WvnJcMvi/KBJSzmlCdXCrkRYTRyUstFNoZF9TUf9GSq5HZvVXktNxdQYDrWWdou0QX+6kCVCF30HUtBaaxB4h9/Mw63xykONZkriKROi5bDJSmK4xotnqX4H4HrVJkM+x/GmVuZdB5qc4EUZDe0dI71q7MzLmEvz9xLHHRVWK8XPgFE9ETjfoZinAwDZFwOyNwBZi6g= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2017 19:14:54.9174 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH v2 05/34] app/testeventdev: add common helper 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:00 -0000 adding common helper functions that used in test framework and in all the test cases. Signed-off-by: Jerin Jacob Signed-off-by: Guduri Prathyusha Acked-by: Harry van Haaren --- app/test-eventdev/evt_common.h | 116 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 app/test-eventdev/evt_common.h diff --git a/app/test-eventdev/evt_common.h b/app/test-eventdev/evt_common.h new file mode 100644 index 000000000..7fc1e8290 --- /dev/null +++ b/app/test-eventdev/evt_common.h @@ -0,0 +1,116 @@ +/* + * 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. + */ + +#ifndef _EVT_COMMON_ +#define _EVT_COMMON_ + +#include +#include +#include + +#define CLNRM "\x1b[0m" +#define CLRED "\x1b[31m" +#define CLGRN "\x1b[32m" +#define CLYEL "\x1b[33m" + +#define evt_err(fmt, args...) \ + fprintf(stderr, CLRED"error: %s() "fmt CLNRM "\n", __func__, ## args) + +#define evt_info(fmt, args...) \ + fprintf(stdout, CLYEL""fmt CLNRM "\n", ## args) + +#define EVT_STR_FMT 20 + +#define evt_dump(str, fmt, val...) \ + printf("\t%-*s : "fmt"\n", EVT_STR_FMT, str, ## val) + +#define evt_dump_begin(str) printf("\t%-*s : {", EVT_STR_FMT, str) + +#define evt_dump_end printf("\b}\n") + +#define EVT_MAX_STAGES 64 +#define EVT_MAX_PORTS 256 +#define EVT_MAX_QUEUES 256 + +static inline bool +evt_has_distributed_sched(uint8_t dev_id) +{ + struct rte_event_dev_info dev_info; + + rte_event_dev_info_get(dev_id, &dev_info); + return (dev_info.event_dev_cap & RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED) ? + true : false; +} + +static inline bool +evt_has_burst_mode(uint8_t dev_id) +{ + struct rte_event_dev_info dev_info; + + rte_event_dev_info_get(dev_id, &dev_info); + return (dev_info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) ? + true : false; +} + + +static inline bool +evt_has_all_types_queue(uint8_t dev_id) +{ + struct rte_event_dev_info dev_info; + + rte_event_dev_info_get(dev_id, &dev_info); + return (dev_info.event_dev_cap & RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES) ? + true : false; +} + +static inline uint32_t +evt_sched_type2queue_cfg(uint8_t sched_type) +{ + uint32_t ret; + + switch (sched_type) { + case RTE_SCHED_TYPE_ATOMIC: + ret = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY; + break; + case RTE_SCHED_TYPE_ORDERED: + ret = RTE_EVENT_QUEUE_CFG_ORDERED_ONLY; + break; + case RTE_SCHED_TYPE_PARALLEL: + ret = RTE_EVENT_QUEUE_CFG_PARALLEL_ONLY; + break; + default: + rte_panic("Invalid sched_type %d\n", sched_type); + } + return ret; +} + +#endif /* _EVT_COMMON_*/ -- 2.13.2