From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0059.outbound.protection.outlook.com [65.55.169.59]) by dpdk.org (Postfix) with ESMTP id E65FB9255 for ; Sun, 6 Dec 2015 16:25:12 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain.localdomain (122.167.201.216) by BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) with Microsoft SMTP Server (TLS) id 15.1.337.19; Sun, 6 Dec 2015 15:25:08 +0000 From: Jerin Jacob To: Date: Sun, 6 Dec 2015 20:54:30 +0530 Message-ID: <1449415470-25545-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1449415470-25545-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1449415470-25545-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.201.216] X-ClientProxiedBy: BM1PR01CA0027.INDPRD01.PROD.OUTLOOK.COM (25.163.198.162) To BY1PR0701MB1724.namprd07.prod.outlook.com (25.162.111.143) X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 2:+12F+kQ+4xgnZfjkZIAfRyI1oR8q2D56bRhDsxFWlZzl659U0BDwEH2/lN4Yb7js4DgWrUtYjLY4Fr4uicMVVnExUDor3RkFDaTNNbaleagrMyGtZ4qSwG8B+M6tuD3SkbRe4EEn2aBPVkc44yD6Ow==; 3:mTgHozNkcqIO8CqE6LBD/JdjFMwCh9o5gZF1EGfR81W/M7Q12+RgOBLrbta8fyqOgmpEJU2V7auJvhGXPUKPYSuwYb0yw/0kw44CTzc/ZV5/FwUQ8oEuoWJDtLLgTj4Z; 25:ikFEpnK+7Fdw56h424TSE/Iijh8jcN0I1+ZZ2OTYEb4Qav2UPEF8NhpyZsJRaPyWOJOatXWE5FAiyyYSGG+XOiibT4bPctVpj6eFFDTrWe+Im2JKheVoSM7EGEDSPOUCupXukndDcsfCsPZ8Rrqu5nGicpcwuTubjlfHT9QTEbzwOgKS7r7ob9/JWY6CdNZVRo74JNfKPRuAQAnfxcylWketyOUZerO4Jv47WYcwkeL3zOECRaws4yqsNM8U+S3ymrHibkvlNWMQ6koljRMyug== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 20:PWpDvJlvLKvpwMVlpnaoSD2bbjZU4i3Cx6sY70Erk+6HZ9HIsGHTxfvHuF7sDFaDATL9x/Fygw5mc/i2Dh+kHpgyf2JCVPUbPC6e/l4SzO3z332MIQ/7i08VnhF/l2D6a/kxv4IGoloTJmQSCrbPo578cq7wb2Q0pWFnMdFEFnTrU3EX71/S+OIuROvCc9bjF8aK2nR5yObXJIbxNeqbTrYzTkz3ZfLJ//0lShWqGRxJcGH4/Lpz7KMGPQtpZ1DjxMfTpLMWSebmDO3XkvR0P7rNdnJJBRfvXTDR4tM/geKrl+uSvlwDlqpFersWv0RwAvZ3K63qaDfqGFYWRACL/+lm1h9H2i2kheRnB4oopwjlIfNUAOnya2ByoO9Fb+D1LJyjl3ohBfOc3ZX5xN/EIjUyhfAvvmMz83uPBcOw3QDZv95yAuppaPoVCCIvoqtpfAn6H3Ngh1rrQKD2yAdYETuvsqAYVszIehShFEK3xsdWFc4PTgl6Rv1tbL3c+ymj9sAzTWjQVk8qFLuShbi8BRzy+XR6ebpCinCQmxx/KMHTVZ6pa7Z21NG7FOPmcnkMlhlogERsqGvn1hnCbkvX4kSntX7cGpsaNBMBiP8Ud9Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BY1PR0701MB1724; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 4:IrCL1uZGLtnhHhkMtIKxZ2IiB8dQ8wdecCZNRpPr8Zc2kmGx1TH5kIBYPYpjyZouuSrnMoWP4rZ162ajbAd6qMBXA2Q1fvORW8xkUn07HP0oag9xGAO0vD1kICLztFy/NlAyiFwuQE7A4Ec/9MjNqyEC/q+CE+xTf6C6jCXBD7J9AGRrqhDcKroMgVGVXzWI4UxItk6UWd+LwiAVNi/YVGxDeSlSPDfMUkD1YMrOFfIjpL0Wm/T2jsCvTyyzoZ29Kb3yWGek3spnIQjj2ECv2lEnN33QcmikUBhVsBpnT/SlAR12wHXx3L+8guxumnGRkDJJ/eV30H/s93hHEEwh188V5n6aexhgnxn7yCl/nlapaaj1Tg5zPU5lcLVhV/Fc1f/mpvrom7MT0m006ZkShEdfgUheYI3pIq8PJPNuux0Y7smTFmXQ5klCevuVP7s6 X-Forefront-PRVS: 0782EC617F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(107886002)(5001960100002)(40100003)(47776003)(76176999)(122386002)(81156007)(5008740100001)(48376002)(101416001)(97736004)(110136002)(50466002)(5003940100001)(33646002)(106356001)(105586002)(2351001)(42186005)(5004730100002)(77096005)(19580405001)(229853001)(19580395003)(36756003)(189998001)(92566002)(87976001)(50226001)(4001430100002)(66066001)(50986999)(2950100001)(586003)(3846002)(6116002)(86362001)(1096002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1724; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1724; 23:uG4PmpiRLRmyPrKwq0uhKKDCdk5LEd9Ok/bDLKm?= =?us-ascii?Q?/L2YbxbtAa95Tc1AUY+R7HPdA9L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HzwUlQ+FJ7aqGPFmRqR9QENChZ43cYTW+KwVRTH3cW+G3Ln1nXnk/B77zKL?= =?us-ascii?Q?ajqsRFCZL1Y/pVdBUho3xwMrM0R0KC/bvPA9T+5u7Xv4AYluWOgBQVfzqQOr?= =?us-ascii?Q?zJizhYpVh8ce8GowgT8/ox+Ftm0de2T5EYRt8fg0im2U+4MckGv4LWF2SdHB?= =?us-ascii?Q?DZf9BQ0UmgPMluRRIDAfAKbEzTmNLyfgV?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 5:p+tkGW19KlHCCnF9nMcY5zLC7J8YMqb4pjcwzYjj1/o0SDsxvClSwvPZwfHCiEvqB6xpN+1N3fomCL6UTZ0u61fRvojl/TA8FiQJ7tmbxqnQ//Utko0HkQ+EVJco/T8vyve0rsOS+SuNH0HSRmpzgQ==; 24:URTZv5fgUtnWUiemQqeYL8y1W5VqzShhXEZUA+7VQUjjFe+MC+tEbVGv5DnbJBZGNqgEeCRplgTa/MQBCXoYbOh9PsYsbs+8IBTse5JIXnM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2015 15:25:08.7732 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: [dpdk-dev] [PATCH 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: Sun, 06 Dec 2015 15:25:13 -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