From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0066.outbound.protection.outlook.com [207.46.100.66]) by dpdk.org (Postfix) with ESMTP id E247795DA for ; Fri, 12 Feb 2016 12:14:57 +0100 (CET) Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.12.50) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (TLS) id 15.1.403.16; Fri, 12 Feb 2016 11:14:51 +0000 From: Jerin Jacob To: Date: Fri, 12 Feb 2016 16:43:51 +0530 Message-ID: <1455275631-30507-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1455275631-30507-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1449415470-25545-1-git-send-email-jerin.jacob@caviumnetworks.com> <1455275631-30507-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.12.50] X-ClientProxiedBy: PN1PR01CA0008.INDPRD01.PROD.OUTLOOK.COM (25.164.137.15) To BN3PR0701MB1720.namprd07.prod.outlook.com (25.163.39.19) X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 2:VcoR16hFaAn88BV8hR6CVnr6jL50ApoA7d7IE2YRP6kdzxC7enToPtJuYazmDAEADIrKP4TYdC+s+ZQagoor4AICs+Kasqnqua6sX2TKfkEeJ6ztcgNnwv+NRLt9HG2EpevGMbyFRBhNRdWmGCyWfw==; 3:5H3prQUTYJlbO/jt7B4PPMMpC2Gyktl5NkWnE2tW4Slcs/6M29BukmH3kIThtvAnzIWNeS+PVFhMiGRanmst3Ik/9/gkG7yN4REgN5PeURE6pw4h5fjlezNKTX/e1zXP; 25:v/jPDItXUEbnEQWkTNU6Y49/ukxPdLogOJ5e157QLGcrPQuuH71V1PqSkF1iX+1MN3KcFBh0qJVKvHSiUlePX6sLxVOusUMpJede+2XzT+EF/1jwTLNaA1BaxyHUBuPc6DYhTMQdE+4icRR1ZYtjCaAWVcFSZT+JmhONS74upQVY5ZFpvS3O80huTnUM/t/glGIBxLv1WjL48MlZ+7QVt4iNknxdfuTai2cCVP6vZ+eeMWibA0y4mtMMpDdLdWJuyE44/r+MoHltQ0Eqah2zxX7RcFMojamrr8mwZE+S5Frc+0OdQlBixxq5XgHDxX0P X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1720; X-MS-Office365-Filtering-Correlation-Id: eb7e0226-03b5-45bc-16a1-08d3339dbc89 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 20:Sct/UKgY5dDD5UziOuP74X9vx7xJ2JcroRSysNVEp7rTBMmCUtTbgZE56eNGL7rDmKrXCCKUPtEVL+0WCsIcb4djzwXapImdoy+j56Epl7VVbpn5tRk8G6vLuEMSAS2KA8pVg5MrOXxPOcC7dm28en6KAOB4EvBTEdaCXjNkb5j3PdpWp7p5QXXY6d4UG+/4Y7SVtBZZ1VT9vyH8OLJB91kENsAL5Ilo4peWEsRW5Ploz/JhyawaX7QlRPI2gM8N4CqvpRYpZV84oNsLlVJBN+EKw+X2WAVI0s0T+9sF/jzHFsyczmqF0ZxaCkMNqnLbz8Jh2Rx8f4EfCz0eMzFYL3a3P2jweqSGGoE7CEN7x9Zk0H/nIlV14fpoW5o2Wu+gaxNvFkRjLtHF/zJCDuBUnrxRn9B25Ybm7Q/6lEuzZmDzGK2FJNuTL6119L3l23yxE6mT1E+3J2z6WIBD0FiN3M7rrfzjk8FS9WSsEMoA8zaO2iKY99Ac8GMsaTAu5MEnPPaNX0SRsN+AG57vT2yzaUDKTM0RH0OqZENMCTbQteJhY/wSLioOzBwsPXwVd3iSByw+7ERXjNunuMVr7aYGmEFS3VlKP/4d+AdjaWs4rQE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:G/WTpoSASmbBrrIxdJSIgPsau6w205vdAiSFBRtIbiM6byhLUVV2bQEove5BzWuxRjoJr3eSbl3YbiKGCGwrJCVwwbzOKHGC514Paz6XEHSHcydtVOE093W7E9HPeXyO5Ao64CxJYoyIZgj+2mLN14ziCiTZF6ttrkTRxJtJPd3Tu7J4F+4mtXziK5v7jYZ/KakdijcYLjhvPmFJqJfFNRAoStWEQZEeuGxHPeCA08ZgtfCGEaeNVVvzom2pQbwVCYrHknd4wHKJFlb9v4vc1kqacCJEVNGfeoolfKzSo+gnLJ8iFBfrjfUIZfeCKS5RldoPE2LEJp6RpSatUSnDdrEStF/JDAc6QvII3DnlAL520omyxqUaRyg++YH8QR1f X-Forefront-PRVS: 0850800A29 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(48376002)(5008740100001)(36756003)(2950100001)(86362001)(586003)(33646002)(3846002)(42186005)(4001430100002)(50226001)(77096005)(1096002)(47776003)(6116002)(66066001)(5003940100001)(110136002)(189998001)(40100003)(76176999)(50986999)(19580405001)(107886002)(2351001)(50466002)(2906002)(19580395003)(5001960100002)(4326007)(229853001)(87976001)(5004730100002)(122386002)(92566002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:2hFd8YWqPi1qfAJ0VFQMAZKRKa6NOncBZUdqm1e?= =?us-ascii?Q?29l53W8PgPUA/HJYH/MsRoo6Jg6ValQgeDmuay4ZXJt96ANgr1TnOcONiTCD?= =?us-ascii?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Qmonmz/+NQYSbrNt1DIKgrw3v6oGMeFBN?= =?us-ascii?Q?nKTYIJ8RXqNuNL9Ve+TIv2XzU2Y+hHllKMmzZQImf8ByNHg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 5:nApjvezXwMl7FVzyzOFPveEVlN8MKXIdttuIXm8BEnTi3ThVGzfWADZkpchx2h6HVUjFuI9s8W3SBffE89KDaPGKP6HhhPgCkubKqZOADTRj/7VkGoRacerWYP+XLCzX+T3M9Wn7+IIbnU+DEHRwUQ==; 24:j+4euX9t5yvnPaW3MIJPp8nDC1AUIGltc+LZBYK28SquwxSZSP+z4ZQ/ClENDzmfPxyNozfjIRGLnItFfIRf5Xt77RprDf2Jm3DCCm0BqUI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2016 11:14:51.2384 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Cc: viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v2 2/2] examples/distributor: remove IA specific __mm_prefetch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2016 11:14:58 -0000 use rte_prefetch_non_temporal() abstraction instead of _mm_prefetch(x, 0) to in-order to build distributor application for non x86 platforms Signed-off-by: Jerin Jacob --- examples/distributor/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 4e74f8f..c0201a9 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #define RX_RING_SIZE 256 @@ -335,13 +336,13 @@ lcore_tx(struct rte_ring *in_r) /* for traffic we receive, queue it up for transmit */ uint16_t i; - _mm_prefetch((void *)bufs[0], 0); - _mm_prefetch((void *)bufs[1], 0); - _mm_prefetch((void *)bufs[2], 0); + rte_prefetch_non_temporal((void *)bufs[0]); + rte_prefetch_non_temporal((void *)bufs[1]); + rte_prefetch_non_temporal((void *)bufs[2]); for (i = 0; i < nb_rx; i++) { struct output_buffer *outbuf; uint8_t outp; - _mm_prefetch((void *)bufs[i + 3], 0); + rte_prefetch_non_temporal((void *)bufs[i + 3]); /* * workers should update in_port to hold the * output port value -- 2.1.0