From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0055.outbound.protection.outlook.com [104.47.42.55]) by dpdk.org (Postfix) with ESMTP id 88D205599 for ; Thu, 11 May 2017 12:11:20 +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=Bn598hjkQqvUITFsA8x8Hq1R9+frFVHRqOzk/pADzOk=; b=YoN7mm3UMlBvTAL0y0G0/Z6QcThA2vFZ0SMljGLLivwn0n6q22HAwL7WxRNTHlT0uc4F2YAELeJkRyYgKjeZWssoY1bf4ADztHgdcB3xKuTxvwE1Q9J9VwA2km7XwPfWqlcgQAcxI3f5+u0rR5METxzxaAaN08Bw36jCFXs7Xsc= 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.1075.11; Thu, 11 May 2017 10:11:16 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, jianbo.liu@linaro.org, viktorin@rehivetech.com, Jerin Jacob Date: Thu, 11 May 2017 15:40:42 +0530 Message-Id: <20170511101046.26456-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170511101046.26456-1-jerin.jacob@caviumnetworks.com> References: <20170511101046.26456-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0070.INDPRD01.PROD.OUTLOOK.COM (10.164.136.170) To BLUPR0701MB1716.namprd07.prod.outlook.com (10.163.85.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94bfad7c-d7c9-41ee-6849-08d4985610ee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:37FqnmDGZ3QZu4Q0Zcm+q/bKLdFyt7eSf09YNvbijN8/aSGFRqkVISV2M1e+96NcwFHU3pn1cJETNUJYWUScdj8WVwkjM8VbxV58G4B4cX/Nc0UIFV0GnHmX4563Mc0oiUj4u+N2JcBQKbq8VX5U15yJtlkZ8oVo8oySZqONa+3XG8VTtifzqJuc+u6a6AeHkt7K5bju3bWuYTXl/bDPKGHbYqBTYJqruOqB0g6XV8BxY7ISDoikUGJcW7XnO80nVgj30Zq+tphKX5GgZlhgzYHX1U+rjhzWGRj7FfUK+4F7KceF2zyrY3YxI2yoKh6rUtLAQFYrY7FLL6wReENj2Q==; 25:yzjcRDjjmNfbNzlT638Eyvn/T5s/7YrdB0JTN8cK1Cmm1u2AZPYu93XKm4kAWOWKgRBTEf1ubkUi1a4Dy44wj1KooPFGRM43o6DP37Cq7VG2clXfjnYKNTyLugpXPrFkvQ/sa4yoJEJC07jaQ7B7War6ICmCIX7eLNh2QrbuJBPYjKHrcM9QRhfq39YEG0OgK5W4+MSPElyUTp7d6TzP/irfXX9O9jYfCRgvEPLSdDlHj4CPvl7NvLZg8dyRovJ/RYICTdi3fJxEDd4VnVjwgtT/WV8lNI5xq76vpeRat8V/R0XHAciSXQUoPE9NTg1sPSF8gJMCMclg3nL1tFqFi4PRpTg+Fgu94wwH2l8ph1buZ9t5rCKMZQma+NpFjSuUTKEmiOSdGVyRbtqYdrGNVdJxfe+pl3rBve1oY7E3a8qy1w2AjtRImxtq4gCh5lLTEDLVALgqGVXLqELqpv7/T1YH15U4KKAZCWFd/cYJRes= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 31:xcZKJcbWC61pq0iqAsjbXsTNZNLtVZOuxwHqRF4+JveZMZsbaFGpozrcxespwrPRey89HEQ/V2xDuFnKBVsIs6Ih49pTWGTHZSEc6omwMjwonCbT6XJU+zppTpT3pOkZ7J23WXlqIV7kqYqCOqiWC45NA0Dil1zE+gD7l/HB6HgcIH+R98abGudWaBdyreewtHTg6379+UUxpqrFBUQpzq0N1u8ME3930961qfbhMX0=; 20:wLljOhWuz0g5TMnL52ipVnRWwA0SdLNDaWi+uvIgxe+lRyqPeTrRAeGARDd5NTtPWPOIZmMzd9S1a2S/hJhFy1ABy4YkyrodK43uyM/j2bserUeoVCL9xMQ2HzbrNPdsDcaCKQxQtRBlVojZncAIC096IZkHtZEBa/g4Spts2A+ckzSL6//47j03AkgP40Jgn5uW0i5QrV97K9K6YP8b5cEcx6yD2KgPmG0flxrjul2ImIg/He22DYocoifwtrRr3Kwsd0GN1GzfKULMipY4oEXlukM9GJoYchmTRviujMBHnEwQcC7cEKmuZgNZEXMF8MSbhHDmdYfxto1tvIBQ6yevAo+V4dBUxDE0B0bTFYfxKWQrb5n4w9NQtrY64qX2msyNpvwF0/HI++YAOsCdiE2YnnvwqhJga7ARNKkfWtO6ixFfsLtMU49I5CoitmUC0Tqc2lwfFe/u8DpWXHqIaQNXWFmkbJnThP5O/3CHPNuIhOQ3wu5kffNEWWXd3TR8oJQJtXaYgHEMJrvv3WtSkfXYH4dJQwERrbGaexFrA/eWvslwOqq1dtzLurIWMML5ZmCSQ4dbWpM2nZ0zKe6DzINn2Uv6iz6LemyMVbQ8tuM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:BLUPR0701MB1716; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 4:zSzIfxRhEZiNidKq17MSzr/jg5fFtwRFebcj57kdn3ewc0WVk0YMiYhdXoMFJMvms4FovVADdhgOH/zQGoPsTYyE4hrq2qSBwHZMRI0Hdi+uQVkGaFj9KqMVmnfkmVHicNYj+16B73MsOShP5GAe6tNp1FMvUatebiNaztbj6WDhkI2U7WnJVfTERF5DbmLTO7Gs4hTDZGELGhG+QWc14Ryx4mPhNZKvSZlgdzbVngUeXPt5eOR7V5v3epehR8KPT0HCAbMJHCbQjaS0KeoHggCMuNN+UmQU1aPDZLwRXXXtW7iE93G0/P3UAJsFSeoZGxqjx0gMqYGe0CZTcypO+ruWj3U4frjmy86e3lCr86fnfv8HX12B2rOz42yo5E/8pwNmWA2+YEbUEuFWeqUXIF2SG5GBDGaOvJ9JUENg8Tiv+ZlLY3WxFFvZcqleTiqMSM4N9/eMsxzmD+MJy+uUEGdBnYc6JifpKM/iUfL0Acb+ZoQvI/ahzafBIx248BxTVHRX5ApF3aJfkbcJ81MvhjLp6w4QuGPQdEJ+Iu7a+kyVxpS0HgDmf20mP+6mzvZtfV2exACztUYxi2Z6zlHk31d/BkW54kbv8KHzzmssbsD72oA+TmmlBPbNFVaDMQjTxY/nQ1XyMd2ETOlo6fC01ilESDI++HCqS4fmU9emAE/OxDKVuisbrmyyO0lsYoEdD8xnQLKn9nDOyvi8Ejgmn0OFtTExfLSlvzAI7vHHn68zz7EonEksrPqWEVTDUxgmaG1GzX4y/A9rgxSgZSitww== X-Forefront-PRVS: 0304E36CA3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(5009440100003)(2361001)(3846002)(110136004)(2351001)(478600001)(107886003)(38730400002)(189998001)(25786009)(4326008)(72206003)(6512007)(36756003)(53936002)(305945005)(7736002)(2906002)(1076002)(8676002)(50226002)(50466002)(6116002)(48376002)(5003940100001)(76176999)(50986999)(66066001)(6486002)(47776003)(33646002)(6666003)(42882006)(53416004)(81166006)(5660300001)(6506006)(2950100002)(42186005)(6916009); 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:l/bvepHFz1M70uAsjAiSBrIBKmKGzsp6jda30ak?= =?us-ascii?Q?Y+CPWXEFZdVx4Ahe4NvRCYTgatZznOFz6nhXYYCeV1Iwg7l2Wj/K+z3Ovgff?= =?us-ascii?Q?gKtKf0DNEEGCQNF9O9tA8ff8Ee01bmWFseHutHFCwvSNsbP6IaH32iaucTuI?= =?us-ascii?Q?JGlE0wKGbZgMnHAAf1rAf3Bpyl6Foih70zqfWtWBpEQp/EV+ui9s0YQiOwIO?= =?us-ascii?Q?G6xeqkPwrPvjLn55hGMIeirXau82lRwov81oE3oT/JL5wjLoWk8oQ/ml5LkJ?= =?us-ascii?Q?PCEJQKink9p/pbZyK43QkHTunIVVpqzz97tozfB197ZN3p7+B4QogV7fkNQg?= =?us-ascii?Q?ChNghYLQ1+Mi9jpkEIbJlbkQZNAFmLojRc4azTCN0aWXEaBdnrORCNiJNcke?= =?us-ascii?Q?jT5Za5CUXe+E4Bln6bFpKcvX0C3M9Vu6KxjoNNcb1Anlsu2HTl40Wxb9e9q1?= =?us-ascii?Q?XIWEvtwA3iAROCmf9XzIark/uTzCgbk1kUGFtMMl7pgwho6teaG7w8q0elJF?= =?us-ascii?Q?iB9aeCF+HStlls5oU08IBLDNYE13F0wKT9PmE81VZwS+Ym5R2FKdxcPJVAmp?= =?us-ascii?Q?PBbTp6txxTghzW2R3Vm3avQPUU75hoiiWuHH+BxT8Q96VeWonIeBrSFijJeI?= =?us-ascii?Q?KhY0mqXUrRTkygz7fnE/EM/XHAIm/UxO42SJ0TFynDFeLTKPvhFNST0KEweC?= =?us-ascii?Q?r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dH3/9ufLX5mes0CYYRrXcXf5sO67wDAlbzYEfKv9otlBx1bFW3JWvnbW9E4D3ItPZT0E1EhyzUSxWtLIl9w36Bq8ZhPOVNCS5HggM/bThyzuBOw==; 5:KzCjzwyuCW+mPyBQbNPT2sEubM7491FfhoQr0zGM7FcNaYKMY12QPmjxuyz9crQybo1R+IxYjx4HLxpSDljka5gliQl06AfoYZ5x7in9LlkapWZa1Qh17AZQGOwzNQjUohbjuwZnhuSyonGUDNaAAg==; 24:3TKdxb7xwZE8W2twICpkM//8ESqHq9Z+eeaoP9O2EEY+WO+QuKztQ0DFF23sEuBNfSXT/HwHDZtoRzyqzRM8hcm9EKqGiuokHaD0KYMDHYM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:sjtPKqu53wOAOGl7PYDyzG8dQTxZEcKQz5oeHyhfGuU/EC3Czm4wTyRyRmuuv+YVBpvLEdRvrzTnOf3qIDuQ+NZ4ohmZEOZfYo7zOG1UTAm3FhgA2ZBcBX64Yd71ajoAMOcRYs2nyjh2eHhU3Z9BU6G8L1wDJDs3C7AJEkudbZmtOyzmeKR0sB4lUlMTU1iYhbPluWajidIzWW5pEXa9lpojLnKK2Ko5U9loe8fPZZxvYCwuEDmwtPXM+m0AQBveAh9qM1sGKNXeY44kUQzLp6IH9O3y6r+kN41a9DjIBKw8QvyMRpeZT+4fq79Ymhm+70KIuB9E6wCWFa3kPpxQfg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2017 10:11:16.4750 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH 2/6] eal/arm32: rte pause implementation for arm32 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: Thu, 11 May 2017 10:11:21 -0000 The patch does not provide any functional change for ARM32 with respect to existing rte_pause() definition. CC: Jan Viktorin CC: Jianbo Liu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_pause.h | 46 +++++++++++++++++++ .../common/include/arch/arm/rte_pause_32.h | 51 ++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_pause.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_pause_32.h diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause.h b/lib/librte_eal/common/include/arch/arm/rte_pause.h new file mode 100644 index 000000000..0fe88aba9 --- /dev/null +++ b/lib/librte_eal/common/include/arch/arm/rte_pause.h @@ -0,0 +1,46 @@ +/* + * BSD LICENSE + * + * Copyright(c) 2017 Cavium. All rights reserved. + * + * 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 _RTE_PAUSE_ARM_H_ +#define _RTE_PAUSE_ARM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_PAUSE_ARM_H_ */ diff --git a/lib/librte_eal/common/include/arch/arm/rte_pause_32.h b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h new file mode 100644 index 000000000..cfe31d8ba --- /dev/null +++ b/lib/librte_eal/common/include/arch/arm/rte_pause_32.h @@ -0,0 +1,51 @@ +/* + * BSD LICENSE + * + * Copyright(c) 2017 Cavium. All rights reserved. + * + * 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 _RTE_PAUSE_ARM32_H_ +#define _RTE_PAUSE_ARM32_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include "generic/rte_pause.h" + +static inline void rte_pause(void) +{ +} + +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_PAUSE_ARM32_H_ */ -- 2.12.2