From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0061.outbound.protection.outlook.com [104.47.36.61]) by dpdk.org (Postfix) with ESMTP id D6CD17D3B for ; Mon, 5 Jun 2017 10:59:26 +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=WBBb6al9pmnPlj+6Jk795WKoBjWXbaz28aWyXhZKHFQ=; b=Y3FXZ1wI5fsCPOSAmiVWBR2CmOPcXYFbhzsuo7CNxqkNBsFMuFieRgtG4obrMBk1EhPf9BGpG1ip0hhoB2ciDN7lw7uFaWl0IGCsDrR8qj3LrrwIMXrs9amP8muQBbos5IgE4tOqQiLmSL95b7blDmSi08JKl6/lX83uPWlsiy0= 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 (171.76.74.1) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Mon, 5 Jun 2017 08:59:23 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, bruce.richardson@intel.com, Jerin Jacob , Konstantin Ananyev Date: Mon, 5 Jun 2017 14:28:41 +0530 Message-Id: <20170605085843.16696-4-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> References: <20170511101046.26456-1-jerin.jacob@caviumnetworks.com> <20170605085843.16696-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.76.74.1] X-ClientProxiedBy: BMXPR01CA0026.INDPRD01.PROD.OUTLOOK.COM (10.174.214.12) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1726: X-MS-Office365-Filtering-Correlation-Id: a70dfc21-9e98-4edd-18c0-08d4abf12a81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:E3myHIctzvNnozrYYxIPL4BPUQmyomBg0G9/5e8u5+1ljPdD6svyXj5G6IFQtzPy2MNAQRRJG9Cs+MIDNnvbtGpMNLk4mU6ltmRN+N+VgQ4GCANLBttm7lBEH0AVtW0Cv9H86rQsRBrX44g0J8lS9IMTPJZK5lT4tMysQefCe8iy8qQjhrh9pV6I1GzookDdlV6voZSo3VuY2+kbJlvO9Z5mPi0/2FltzrTR8sIeL+0v8iSJAZQhDP+DCHRe7l8+P9cv/0jPKrApMkHX1MfzoWHjlORKBYDLOaGbJg8t4zZMIwop8eOp2pkFNvLYuOGw2HYrHFZc/kV/Y+VhirIB7w==; 25:Iv/opxyh/yF/PNLHq1sjjcf9B+PdkKibENt+mhRIbbv8mvZZJDWr0g98J42z1H0Oa8oDZI1DIacPH7/TYOGB9oqcarUAt7sVGNACn+qZ+Io7XS/KAnGIeGdt61i6tUzK6tJEgFCByRkWyJ6yCVQo/IhQPPLdiaY5KheUTNwi+3YgtF5UvvjToQtFWDv7RduY06UHkHK6lOYIM4HmERo/42hGpskNx0HBwfq/LBNRhz2NPNsoST6MP5/Fk0ubPSCDpNKnuImLcKF5KbwCMzWhoaGJmcdbhRqyHuAB7o2cNrY5ig3aKS1y4p2QhWNE7ACJWch2aN3s9eJiyTa9qqrK3CwVWZ//U0hACofKsc1Dqu3QLkq6nVvOZd452BFuSdvV/rHRjmzqdHgM5wFF06t6G+0/r32cDtgHj9DMtNkx7j766ZWfbV1ea4YX86vq1yevmMJbHj5eKAwIIiQLcj5YOKJPbTBQ7Rp8KYPtgXzeR0E= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 31:r6bQhIn93tnb/EELflerQKD16ar+Rz57TRrtwIEtvgf67oTgkuEYKTH1v5A2AQ4mRlJi5iihFL0pCKSNkLjLYgnt/VcypNM+o4Qk2AgPP0Vik18iFgJooxtDymbLX1xMn7cR8Mvqsn7OznctW1KAlnl9KVQZ8S9ilnSTwHkEE1iI8lC6c3vP3oMhJT2muyvodC0oYdSuJE2bVvzOwwPJDdBKBpKUvU9u9ks9CYE+7NA=; 20:MF8qim/oqt4GfdMZbBqT6JqeKbBprT5Yjic0QOmI5a78XVilpIXzyty6JT6l4bK08QR5S/R8zetGKfB5o9gzYULUbXjhk9gDTZivlwgHCXaTPKMFtno4ec7yz/0FaElQQOVySq4p7IGSibjfGwEXYl2YhTmep7HViE8Jeo8U2kjyqGiNH+lQ+eGT/Y3hiN3x0ULG7DXwLN+Wt/Hmzu0pOObG7QqmVc65CdIHBuVRjzql1kEjFSUAAEc8kyzBpie66hyMVXhHk5UE/p/woJehbh6H5fzWQb0Ckn5Mxwx2eXQXL1HHq90omzOjhMcAK1vFzasyOJcE8SbkhZtCIcffRT+j7ck9/AovpQ+QgubkCEtRtFwfNswQboyyAhqKh3bn/kRIj8aBPdTEy+RmdlUHbsvSxpCNw1WAI9+wLWX11fwb5mx7IwUITLff8uxClcYk4SSr+UXaB5fOErGjTkKgHPu60Ic6b0ZTmid186lNwNCmhAkQsk66eGG3kv5SzmmKmIkUeHPV/re6RvhVn3JyG5ILGfmLgaWxhJsYOr9J3843TdbKZ8P/v7GWigOTHbAZ/MGAKmlmsBlBAamaLIn9PVAbUbtaK2QWs8xeQqwXzTI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(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)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 4:S+yUel+18fjESh11NcBNsCIvC3AQADVzFbaO61kt?= =?us-ascii?Q?Vz/+5qj22X9fkOoyn1DEGMJV1b3yDEkUXhD8XibLdDgsJZ28rnrwPwzMD1fG?= =?us-ascii?Q?NjchCzUMz8MnbpzKX7z7Syj1wv2DMkftt5nQi2MuNF0k1xEWfxS7qozaskgH?= =?us-ascii?Q?AYpU10dFV35fvHbw/D880KYbkBjYvo2U2rqlE+WN2IQR7UbiMQPPug6DZKlt?= =?us-ascii?Q?Me3EJKQzyJLPvlj1yLfa0wIJDan4+dn0jlLeeDLBmCeTL+I27Two+knfMh0A?= =?us-ascii?Q?b2TGOk2eltDJszYCKwxBenaoUQexoY7nqe56qjPYsizfyWq5shOtjP7+GhFt?= =?us-ascii?Q?yQRPlUPAjnb+ZyxPbQE5jTsvqNa4keMpQhyLTbYlbhFX7yGzpsCCENL62+Uo?= =?us-ascii?Q?xeJgIe/ri8PBbbbeZBbZ/8SuRMMRDBNMF2DeX3wrgfPc5CfbbYs4ubdJEsbd?= =?us-ascii?Q?yc4B+UFkckomF860qwdo4elxHyVvw1DFiLj0IbqnekhlUTpgDuFFTxrYaGdT?= =?us-ascii?Q?EvlvebTk5I1UFP2LpjHX5uoxxUzA7O8OvdfGH+nJCxPzvktNrP7Fmf/VrkN9?= =?us-ascii?Q?olwGLcOKMElBfd3Lb9SNeHZpRFiL/qsbuPiI2V09vn/5vA+eOG7dvWc5Jh2E?= =?us-ascii?Q?CYB5ETZKxgjbDBz/VeNTNVho1r2s1s6uHT+Fw+oaNi16QNwEz6EaxI9Rmu/4?= =?us-ascii?Q?g47qyO0juC9GQVVY3CKDkeYOymauO2nUDok3J1ExkIp78d/5LLwJ+edtPX0R?= =?us-ascii?Q?2URyoMeqjFpgbHmeQZGB5TGDPljx7NjoV/14CdWeUGrUeVyqtY+WGNMeViEs?= =?us-ascii?Q?YthsWk/+5BkYgv/dT/tIJPgcSec+isqta5x+NnKbA8O48hZ0m6VwPx0zpz5D?= =?us-ascii?Q?HJIl+G+AaFp6Kdi5HXNJObE4x9ukGNrVr460YD7IKOeGynnnfwr+ZRWS+AdZ?= =?us-ascii?Q?7W28pMZEquKZTXSNFiGdjNu+jeGPoweowhfUrvs93npObJ1mwFF1G/kEuV3A?= =?us-ascii?Q?m1CfsiXvmRm3pjOHMn81vHtZU6jNoGfci7c0WNJOVfinUQw1EyiuNRWm1Uak?= =?us-ascii?Q?d60z5AMbVP5yEcjZnsRH11l+l/QP3xP/EVkk6hxoeGUWwgFyNNuYPgFhD1qH?= =?us-ascii?Q?q7QL9AU4NIzElZ8Zc4DBpQJjrtpSGiWtM5nMTcCSukw6oG/PJ0UNyg=3D=3D?= X-Forefront-PRVS: 0329B15C8A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39840400002)(39450400003)(47776003)(189998001)(66066001)(50986999)(76176999)(2361001)(2351001)(36756003)(6116002)(3846002)(1076002)(33646002)(5003940100001)(5660300001)(53416004)(7736002)(305945005)(42186005)(50226002)(81166006)(8676002)(6666003)(72206003)(2950100002)(42882006)(6916009)(478600001)(6512007)(25786009)(110136004)(38730400002)(53936002)(2906002)(6506006)(4326008)(6486002)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:DrnfeQNRrtu9lLEF7Glax75204YjTixovEYQpY+?= =?us-ascii?Q?8KN23LkRFAPtY/F/es+y5t5tGudKJ9u2m/zOzLhrBEF14wHJdZsikHfv0Fcv?= =?us-ascii?Q?wzuyanQke3N2nAH9V0iRcNXCIk4OOAeiVGYdHtyTnqbt61kfkJtvu6n0hXsJ?= =?us-ascii?Q?tAKzJ75U3VkgjI9nI9UBUIpdp+CPygWmcAaiof7l6jS4MaJ1nauzEhH1V3rf?= =?us-ascii?Q?nTbUWIQUiifgCQAuXj7QJ2qNCum/1LvXTrBLBlkyQct9Verj9Q9tI5p0o4qc?= =?us-ascii?Q?kNJKCCwlx6AB7QWoPXVPWpTLdWKAVM4rLp8S9yJmIsefMNpmEoy03KgOflo2?= =?us-ascii?Q?8oVW2WectqZhqq6bzGyLM6w5GRWM9S83Xe2DjhxQ5Sa5lF2+2jJBSfbj0HIj?= =?us-ascii?Q?yYehEkod+Vboro6wsyoR7n4e39aBLqG7/sqW014xDLS/uX6GnBN7Ol3C6jTW?= =?us-ascii?Q?731Jd/xqHfmMEy3VGqujj+8AiIqODPN1SUl7IMBEr5YbWYm++c8U1UOF3ChT?= =?us-ascii?Q?+vpRhvjlHYC4c207qeBNbW2bBWdwsjL+lpuhzvTZYjTnNiPfLp5poMswNUDW?= =?us-ascii?Q?ZjTVzYsl8PxB30xkpUCRASYkpzNSQF1M/tIJscecY638fOb1jnGRbzGz8yr7?= =?us-ascii?Q?VRd1Lkan4JL8HB6D3YkZYZXDFJKFxGCh2iqwXawq/JmmrDCjQf1ZE618UkFm?= =?us-ascii?Q?8VgqT8pVsIGb15BC0jUiWWrLbhUaYnLohxU9D6oSA17sPVyeUscJsYrIqO1r?= =?us-ascii?Q?dlEEYA7iVoTMuy560XVOgLwDPazOMHdaqg58EVcc6LCOBhSFbnp635uest1F?= =?us-ascii?Q?NNtb1a8X6oFmpke4wNq79BMelT5XeHue9MFKqg5UzSl16qJRwWNkP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5BCT220A0JdJh41n01kinnGTmEZ2KHa/x7pp/ESyytDhAVekY3qjReSKmSEAnNCNR8Z16ICzm5jFxPS7EQ+rdg5Pl+GBEkvLGbuTfq9ORWunE7ksS8nTMzKz7Ixoo91ILILGJpQqAhUDjH9QxPm//7iZ+JYmLmDOp6mLf029zTxI2do930XMBZz1i54d4EPAqNgSMiiU0GioYBl3WDrCsnfRziEf9Z74dTQi5kpDzmEvk4YgQgIjNET9J52wnujsBOuQWYV9HQgghcViMsEJlSI+CUAwhWtSd6j50KMywMUBj+bMjGdB1HVDrg+3nincXF8Q8L/bYwNzgEqC7LxZ1NzZSg7RLyhTI/0aF8T; 24:780VHtUSi/QP9SG9ivHg3ghrHZh35oTrGX8EIAiOxT4Nr+dj+YpJQH3hrYXrypH2aZVhzLamHAERQlQuFdhlgOmcQLCkXHlNqdJDVkxL3g0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:3maScAm9GjuCFUmYqqc5J5o2MQctsOF+AS33uxMGzfFhG1WjZ68YRaz1ijGJRqM/GdJupDzhk+ynd2sWMARrFmDxr0HKdk8leo56cQGqmwXeZGYOM6zPp2+U9gjcBCK/4u3XlssyPMM10lv12M5gphy8PX0XB83XzwRl8F6SY3IhIpV4mMYnxCpH2jaKbM8LOk6LzZXVPJA72qXmrJ3s45CEsxCRBhHUkwtT9Nhtd9FpfP+ZxwnnVpDfHLIm38CieisKDCn61OdpzQloWjJhuw6HlFK17GzJoQmK+sUE4lsInZEmPFbMw0isDLsuT6P1IYcoi6Vb+xCoHWcPS//1Sw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2017 08:59:23.3246 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: [dpdk-dev] [PATCH v2 4/6] eal/x86: rte pause implementation for x86 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, 05 Jun 2017 08:59:28 -0000 The patch does not provide any functional change for x86 with respect to existing rte_pause() definition. CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/x86/rte_pause.h | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 lib/librte_eal/common/include/arch/x86/rte_pause.h diff --git a/lib/librte_eal/common/include/arch/x86/rte_pause.h b/lib/librte_eal/common/include/arch/x86/rte_pause.h new file mode 100644 index 000000000..22b879a7b --- /dev/null +++ b/lib/librte_eal/common/include/arch/x86/rte_pause.h @@ -0,0 +1,59 @@ +/*- + * BSD LICENSE + * + * Copyright(c) Cavium. All rights reserved. + * 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_X86_H_ +#define _RTE_PAUSE_X86_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "generic/rte_pause.h" + +#ifdef __SSE2__ +#include +static inline void rte_pause(void) +{ + _mm_pause(); +} +#else +static inline void rte_pause(void) +{ +} +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* _RTE_PAUSE_X86_H_ */ -- 2.13.0