From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0065.outbound.protection.outlook.com [104.47.40.65]) by dpdk.org (Postfix) with ESMTP id D93F45A98 for ; Tue, 4 Jul 2017 06:54:23 +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=c70wpOG131j6skNGkKshECNLFGTdJDZbmfazNbuOMNy2n4J38YiIBzQudoiKvY/hothPW8DaWhleXHHbf2MK8i9TCfWwXg4r2A1+fnLwaE1TDBOrGEir2772/CMQSl6HdaDB9qOme7JkjNPk37YO819SuDVuYqCIcZm2yqhLjhs= 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:18 +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:00 +0530 Message-Id: <20170704045329.24711-6-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: dfc5557d-d093-4c6b-d162-08d4c298bc97 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:glvz0aV2RFSfl1RK24waXuuK5xr9QeTlWkVOthoUIYZmplev0aDXcA2EmXt7rkB8JobOFGZl3w45owtkwfixV9fNx+QKyIrylXZDzvqsCBRQ8LTNuXk/aOPj77hha9xUk/N1mqfXEeT0fFyXG5kXzPNzwg6jbsfFh5lxJ6KNWYnWP2BQ2f7K7BgUIKYKMpDrpFJzUTB9m0Q1dDLJpF8arxcLj4x3AoM88Tmwiarbm9ql60udLEynuXy7hGKuCZVQyb3TbM1XKeWRYXk76RHAlGNhDpW4f3vGSwkGMZcCAVIq6E9QOfjmj1ntKo5MEMJyxvhpb5P2UiZRcDbdKlUigvB2VjQ1BcxsH8hYcOVBnMdyTNNrcebKE1GAiKQaiLFNkZ8zAKLCdshnP7ZrsTmfsB+EWbyl4fl89pGU8CLEFcd/qj2/YYdqx9S8RIeZoGe7Fb5++Wfv1C33k5ZMUK9cDu0oZd6WJQvZii56ZU7pc/Q68eneZDUueIxG6bvE50d1oGgzShAl34pP0PGniAUwFP8KfXlW6BfjJ6eauUt9ITAeDanjNO5VGF9n3IEkRwFlanpML6MGIM8hFpPgZ3PV+c7xJfkzNKVM+3eo89WmWWhdM7Wz4nONDZwEzz75kFDPKg6Q461VzbzbiHufW94IAHeuay7V8Tv3mtilvYufa17ibfgbCenKHmXThKf8vM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TQkyskEW1O5kc8W4F+nYy1K+RJlXA++VpRFvS8O+4KsjbmHybOhq2kNhTFwnkzdXeBczAnzfwB86VZl0erJ4qnK3l+iTmWjyzlKPNvbE1IFUysuUmfBgkKR5DijJlx0zj+YbXkDXtSzUjnNAYxIq9/9DmKuY2RQzBYcQ/Ln/0UhxYzsWfDpVmTSI+sMRD8CYBxQZOVeXekn3UGmPt2MYYrlOAiSwoXbicDggzN5fsVTxBo+5Lk/rpkACb+/FcR5WcqGDAOcMyVvtFVqnCcBle5CbqziXJEzN5bAhWytWgfU= 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)(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:p/DwIKsG0XzmHF820QxoTyrpPRhNL57+wr2I32ty?= =?us-ascii?Q?sb8djA3B8IoFSIk1w1/eO08xKTDgf4+ho67uSNR9y+L1oSqrBY246uvHPe31?= =?us-ascii?Q?51IxzF9iTLNhpFULWi4VG4lHAt6PxcltrOcve/MNOXDc/dQgP5/Rno2WQ9jr?= =?us-ascii?Q?WdHllRjDl1sIZb+Uhj5Orc6VP9qcgUAhxy1O75v744juZdmvAEYIaOAySAOE?= =?us-ascii?Q?+EWXISy2hhzZ71XfW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?= =?us-ascii?Q?KxO4zBXk5aa7Vm7TWs1oFSA0dPTUXtH9BHFhtELOX+kcy5YCynVu8AmETVSs?= =?us-ascii?Q?7IuA7FzVtKpzmvIv6xIwRZj7ZFwxR9UDIkuT1sYs3x2OYgQoU52Qmq5vLMlb?= =?us-ascii?Q?OVtTUwQNmspw1kLJJnuRCed+MGU4Y6S7hU9I33R+?= 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:ngFjenJBsPs/EtAnaAeVMt2ta8LRGnWh+yWcceP?= =?us-ascii?Q?j4jCenesicUrOXL/noY8igV3BNjYCCs6EiDo/59gsFHDWphp7pOpn0ww8l35?= =?us-ascii?Q?Vwf/S/3xz0y0Wg+DY6PKbzyOUl5wNaEd2lGqZbYSH4/OdFGdJlkcLC6r1QOO?= =?us-ascii?Q?X+eIRTXBeEPfKqniWzME0N0rHN1mN0LIDGx65Yq05Ma59mcy4uQXmSg2tWJe?= =?us-ascii?Q?OAuy7HCCc37bgLCjNMmdSZg+Ni1chdKXXLjoK/ReAYGJZTiiun/4zPfePoL/?= =?us-ascii?Q?fnNlMOdRKS+7fjbByUWMnKZTW8ke1jnykuBho2YM2CswsfA9GOCSxVKeMmLt?= =?us-ascii?Q?V9N2xMFqc1ytosOEkTuCAKcOiAfi7UVJA7Iv1ltXvTiMgsg7DJ8+3oK1kNzL?= =?us-ascii?Q?nmuG2aWj50Gr9UoFCcBy2TSkx+empMUiyKgGpJOBMjhSb+Js9JLfP066hWzD?= =?us-ascii?Q?K6KNdFvBkCp759Ud8RacplYgjJ5C8XKUU3b3L32/y/z3qMU5RGaWzExXbS2x?= =?us-ascii?Q?A+NneEL3EubCcI6t3yX+YyAt5jRTYwOVUgn4/uJnAA39bA0XDAWrLG2VApkS?= =?us-ascii?Q?7Z918UO03Dd0ZDOQpgO1Q39HB5VAnT0AknOI5eK8xzDP374MtjOryuokmrLH?= =?us-ascii?Q?NOQrXMzvXid4EG96B0u6AYT6GQzbSty1es00n1OsYbZ6p3XMkL8HGlSOSQ8P?= =?us-ascii?Q?Ydt2pIm0B7iwnXGjwMJtTANpDEW0aLGYvFVtx+sDT01HMLlAIoECHZnX3H0L?= =?us-ascii?Q?FdS/CmRiLvA+83NfFgNZJby70CTHZre9AN50B6StBGRX9Va3DQh43IYGOYeW?= =?us-ascii?Q?vGfF0p5CkhR7wZlh8uiHKPX77XMvSs6Su+j+pMzQDwXHAbWMCHP749moRStC?= =?us-ascii?Q?yZYtfnKioknMAqPec1KFcS5z7oRyWRQSjjFZkc87uFOiTJvup7x/G2gHL8cy?= =?us-ascii?Q?iX1kkDddPoPURmWPh27ym1ltq86tXf59w2VAywK7OoV4trb1SfB6zcm+IgtC?= =?us-ascii?Q?vG0cxDtaU2iZ4nxWax3/U9+9OMO3xqtk5vH+jFqlcqxsuJBmt44eRBymtOBf?= =?us-ascii?Q?Mteyd6X52SxOb79JxO4YS5FzSOBQQBH9aCOuoJvftQgXoaPUHjctAqwUUB55?= =?us-ascii?Q?K2xTr9rGH57JChFtco290mRy4G7iWaGbi8Re8CMEZiED0HIeqzM74X8lrZAy?= =?us-ascii?Q?ogvOUELXVa2fO5sOqgpPnfwaP8MONbG2KFz5l?= X-Microsoft-Exchange-Diagnostics: =?us-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yW2XWabQJvBUACh/K?= =?us-ascii?Q?67YHx7iTmJ3jdbuPUgHGcOn/dH4paIPQ1aIrKpbvnGPbT+7bCYGlA+PMSYm7?= =?us-ascii?Q?hbxZMKQlqN1fxR11hF9NJb4zolthL62GKpCDWkL/XlocyCK3QtRTVTgrJrL+?= =?us-ascii?Q?4X8=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:yXTvohNCNC3PREofTCPS+9SMVcBAbxtcjWVzYKVSPRQI/vtj12sAXUBmuc/fL/QOlTCLTugtpPG8rI04hg6t8yFZHA1oQ1b4zGPC6Um/vOqFRlohH+YqJEhlhqANB7NvNwAjPvqVZjH7eDYgJJyiDMQkyh6bONOB4wdzDmPzXQP4OgK8x510f/1LVizQAMs0V2p/RqqbRzV8Q0b0ZoMFF4CdJRWGmLBXYEHTC0X8U7/HREt1uXwhpZ14TVeVvXQM9AfL/d173mR65Yov+Ao12TL7BmGFdUzCKtfNMBVmI1lqCmPPNVmilFhYVs7Pp+/tbk5PJ4JttBP9kivyh1Dbjjchg4dKw0MlJGlqbcLOJhTcSX+PAMvKD6mVIaCbvrsZk4KmDgJSELxJuo2ucAxRpcJHglz7wBYRHd/lIhkkfZu/EMYBfC4u0cT/4fAnfogRFA72qmVg0vOWj+xInMnkpx6+iBi37WkmpwGl8qnXBolk0yWwr5VVIV0Pl9PNxxmT; 24:4n7lOfR7qo6RGGlOCgDZtu4YEg0XLwvsJrNdHD6QzHJPUsQISt9jZIDYr3MJn0g3+dZH21UeeprEFURWPfm9fPuhpgI+VwObN/UwsTX3ZVs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:QL4UkeG2fb914GC+AZmGRDWqtJmZMObHGRzxbkuHatvp/5k05cs2TYXAPr04KwirC+TO7Z7EPzSW9D1buBAFzV7F/sTMu/5g6wo1et+QL8/pJCxnlCb9DXMO66g4zzWq6XhNq+W/XtY3JGPonWHjawDgk15DZ04laTU8ZA7VKiF28qg+fMDkgLajtrc3/MkFc/HbkPsrYMoXgI4NwyrHlkeurkRdHA30uWlGdZ1XcD9OqtLnGV6p6JnItUTa2IO3PVSFvCSgLkou+LoZ2DChbpAyFhm+KeY8/dVSeuyIE5exgil69iZJ9Tu6nZ43kiweTzTRwJVdpPrTAR6pbBeXtg0P0T/1rhCetSQVXDN06dfEkj54dXIR8yIZRcIHsGnJqIe0TqYObDnnVuE6o5Ab/aLWAlRerl/nr3AiJTZIwsHAZQV9C9kgTE5v8y1izW8uj46DeRrtAdSz2AgJozsFOSuZg+7WdE2EjWeUdfyVPD6Yhs+wDBqnLeH8qX7OqT1mS/9EdxbJfW+vUF7J4wntwLx4SCrytgyqbvZYBGEccEGY6KUKEzKowopOTiBbKXQaurOv5Tqw65/WOlVno5x/h5Xh+wGZSO/540rf7Whm50WOrN9dKex+FQ9M7WR5hp1uWKDxcn6xykh/AHJXS+guXBTiHz0U/lP/q611m2KWOcQYOXDxRykleHcuC5cZ8IkWDcM/YfrYWyUBYMRhUYtBAAQrzCcQlLHGqKcANMY+s4KulKveQcaYy4S1Z0JRLCu9nosq9eYBSBL3mSxatdwh1cNrXBPC6iGHtP9byfb6RsM= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 04:54:18.9037 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 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: Tue, 04 Jul 2017 04:54:25 -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