From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 61580BDAE for ; Fri, 5 Feb 2016 15:55:31 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id g62so51456807wme.0 for ; Fri, 05 Feb 2016 06:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=24x9DQDeWLXn+5u2ACLi4CrgBYJQJ2d+6inqrisf0IU=; b=AF2ksHp9m3tNgdChPTYFgOIN19QWHZR84G9RuRv2gXT/Dj2UmA1ZbwRxpK0zsbUikK tOL74VvyBYAGS/6S/AcSolwIMAweKnljFwc+2LMeUYw6HdDVwHFxsz7MWoVXZ3VLNKOX rGV0TDrNWp5y73vr+1aV1Flal5wauYbeWlhtdbZv7G5ZameUNEp0AMzDEY72y2zGvxoQ 7gkuoIuIs2QQ3xaa+zlA/w+qDd4tErEJPUFEkNu/GI5Jk17Sxduwk9nQ4JTlgkG+kk1A SsyeI0kstpvI/6tZaCodjxbOXNIwYODl+XvX2WPJQyuwb1eePS7U5Y3ZlF3OeELJU5C5 OhoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=24x9DQDeWLXn+5u2ACLi4CrgBYJQJ2d+6inqrisf0IU=; b=kKLmetaBOgRSrS+WozsugjC2vDwWGHP5pDTzCbQXYENY0zgNvDr+HYfp5X1j2NpwF1 zhzXYVjNwemsONJ7/Hf2z/D3svzvaOb378ZzEctS8/n4Cc7VPrrqN90gfDm3HefGTSM5 rECEW8eoIznbHMiYm48XdgRWFTTdFoYgAMqT6Fg1/mkxr1VIjtu++adlfj++gYcPgDJl OvbhL6w9x04UAw3+PXkGRHgWSAliIjG5aX+yqCb77NAkSBAdoq4ms/90OQv/9nnw5Uy2 bC13u/ZdoDGtuVq6yQVQq5UMS2ymbWMIB9ILRJbf9cl+ydLye0IaEteyzcjkC2z23Fd5 LkZg== X-Gm-Message-State: AG10YOTBYU1yWVjENokxKtRj7iF+QtHqSxtLDIEC/0+tqdrYr5K4vcIJW98DwbGz/5whp4oG X-Received: by 10.28.33.84 with SMTP id h81mr10610757wmh.36.1454684131263; Fri, 05 Feb 2016 06:55:31 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id pu8sm16257933wjc.17.2016.02.05.06.55.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Feb 2016 06:55:30 -0800 (PST) From: Thomas Monjalon To: bruce.richardson@intel.com, remy.horton@intel.com Date: Fri, 5 Feb 2016 15:54:07 +0100 Message-Id: <1454684049-27195-2-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454684049-27195-1-git-send-email-thomas.monjalon@6wind.com> References: <1454684049-27195-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch 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, 05 Feb 2016 14:55:31 -0000 _mm_prefetch is defined only in x86 compilers. rte_prefetch functions are defined in EAL for each arch, and must be preferred over compiler intrinsics. Fixes: 07db4a975094 ("examples/distributor: new sample app") Signed-off-by: Thomas Monjalon --- examples/distributor/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 4e74f8f..87344ac 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -335,13 +335,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_prefetch0((void *)bufs[0]); + rte_prefetch0((void *)bufs[1]); + rte_prefetch0((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_prefetch0((void *)bufs[i + 3]); /* * workers should update in_port to hold the * output port value -- 2.7.0