From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0073.outbound.protection.outlook.com [104.47.42.73]) by dpdk.org (Postfix) with ESMTP id BF5327C99 for ; Thu, 11 May 2017 12:11:40 +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=1tijRU82js9RIs4nu/62PDSW1Pu1VvokzB18EsJLzHw=; b=d/jJ5QBn8kBOT7zLZyXsRSwoprf9qjWq6La6MI8fcRdhWzJWDpcdRIqrIoizDFtWr/KzeMnvwRozwDBsSOMlgKUc+y2Dwp2eUgAKQboJwfDgcIJnXANiuEx5VLAnplyXu63AbCTzDM7LdQjVDNY2mVaM121z0F3ryEoCfLiJBFg= 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:36 +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:46 +0530 Message-Id: <20170511101046.26456-6-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: 69d8a0ee-5ea2-453a-493a-08d498561cf9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1716; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 3:atpDfsSU2ONLxNChovjEvILFZY7fqVCakpTiLpVgAwyfeGtL7mauR47r74Neu+P5m7YxnjnKuOB3lGjaBsHDVpfp87V3lFSkHQqGlVtgHdqQxsMN8tjJafJfLCNkgNfQfcFu/EB/ly4jUMLeNiPTx1btquijlcPHzhIKyD/Mapciq0qGhdYnAQykl9FWT/RflnexzcLrqkmdsVm5GGbWft/bQI5nnhaQCD/uVyuVeGe8nO+5l/b1b8nVuLAUmEzVHSVhjxa0Mb9mdMrmEB05aqCZLHZ8FXCACVc+YyBtxwEie89E0rnxwIDqSmAc/BRSK7yaoWKBE13uHJ6UHZZ1sg==; 25:C/NmWssnLdTtXLdEw8TgiLgqB+DDnfj6Uafz0wK/qdfj+j7rI7Xn6SDJc2ZxQ2C3jEG43sYxTo50e+blAo5LuoiwGzCC85OAaPod5OWgljsHyk6HC8eaA2KhZkV/f/o3TLyvXzyGte4Yj/GYD/ISoJ3wIBjNlKLuKjZL/sNONYvO3/hXssG2TSs0nfpveEVJ5paI9M9Y+vO2dXCnLTC735ejlmNzDu5WSro8SFFdvKp9JsXVoykCLEitjhNVlrUL0+fVMvRmuDhK6LX49uKa18ERxAMRB7ZXt8fQS2gYmLtHP5BCaZ+I5zGlJJCbhS7n484ejW/eREPDSVl8oxWALfJYKIeFT9Gn7ASNuViPnEYUAOQ7aVU8576856LYcL9fMW965hk984Esd7ybufwJrs37m44Z+ohhTgTWApqi3ktpndXVNPC085rhrjJ/gbDFGrecG61fjTzViJe2z3bRHwljLtbkz9fX/rTvFEDT910= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 31:BNuy+m4htQcNdg1/hxivC7raYFXm547BdLpk8g/jmklJjSN5GYV6TNwwxP9vvbm2Ct/jafoIbiOd2KYfQJqzoSLIoGGmobwAUjnDSY1OHiB66Z7JdRxSBILp9KWohU+Qf1oRS1H8kZp1EYASUdGNu3logNigJCgm6tzYuw0oLH71I1dZdc91XyHNBkKYcVmSpfn28ZSWsVVlyugwARWCDJDcEl1I3tyl2VqzDIhJv7I=; 20:IPEupeqDtZ73bGTPpfKHXbANbIDPKgafHZF/zu5dVmS/w/mvjyC2S9tW5yRfJ4ruV/JmnG+8hzMRmktl8Sbz/9uL0KK50ckqFuzgGAqZGKi2qP9EnJgRHFxQTCy9LY7NYmnyTjr0NFOmhTiPFFf43adV6DGhNqVQ9kOzPDWHUvNhDI2hzvDlIOSryLbz8rduDG7QkwAntztmlBJNqeXhGfDEons92g4j0s1Wtiak1Nvn5ZsHX9ohWCw7WvjzRsO1Z3uoixCj2/djTZronrxlz6Tp051ipsIG3p74JnJXzmOdEolO0ab0PI6WJRePVQpfJpqZkENWiupALN91CPzcg11UP/8z2Ai5JqPQ18T0Y9eZcNaqBd1Hx6uEmfE0zxwnGo9oscSsQmPG+2D08KPCIgcYS5ADRIb9dnaLgISYPCFwzr70ux5uTvgU5PyZ8/0LSVcSgUIru/KKXK+RD9RgvSD3GoTmZC1/xdsGN/zBT3rTb+vayqCCvvKVf1vFmOyy5iyMTp4MEpUbTcl4oqZev+WsHVqjdGrL7bDBWpJ8dfuWI5T0LAzhXKtlY1K9pomS2jCEWXnj2JnANflaSGX0bUsyphYK1/9UFfQsWCNXIX4= 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:Szmbjpd/haRiMBpHg4aNTUhYhKqqjcM3kyW/hKBii0wPgdYcVA+gOGBJICQn1COZyNcJv5a8qeUk7s/geSnM6s2ZnhZvAWa3c4BLN4eePfJQ7ZPIDjPjH89f3ZKR02IgsNccWyDNJ3gtjZ5E1IeOMWN/5j8yU8elhJyMuwwltDA2UYM+7WYe7TNI7c6AGDmRr6rWx6NGH38aaXY71ETLxRH+gbuJs9ELGACy+dFrrWaEl6n5JYMzVqoBDz+kUNLQexy2cLx53paoH+FhEcuhG5JIhvbh4eDzjP2hy6GbK4Grv4rbTyLFu0pWyiB1YCgCBdNCqbor6bt7KbnVuEIyK+msO+GVeORz1vpsDJvviFyDF2NWsn4dCkZ+3tPjzNSFS+FCX0EIFmdVrqp4uPZI4kZCsoYYhT4Sene0NZbQf4bqxBnrVid8twKrK4kEE4LvYs5w2flp/6upxmQ9abrvZ9mZV0p8KDXF3uogyHGXSWplbiBzZUhV5W/W/2hu4A/Mvwqi+Q8+Feb4rZS5tTdx3za8YaSEC+1FLqk2pz8aomK9coraE7uhtiEKDBiu6dzCGdm0EG/S7OQbrDSMhH3hUQbaHayr9sUIulfRogS+OypXy8MCamXj1svtcJOhKxKecw26+Et3TSpANEPaBZuP0q4C5C65CxWY1KLn0JNO7+OVbfudeN357CIIenq4aNPGMJmSReEBNvTf360pHu0LKTTiigKop0wAtb8UjqzG2jFf5/4YoONPSLfpvd5nfjwsAEIlrl8Vq5o++p+kIJX79A== 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)(575784001)(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:J/ALDX6nAzT7OM7jMGYY5JCzhU9nvaAQAO44rto?= =?us-ascii?Q?8Pda/SzM6p+gC2SkNAdMlLZ2qZ8VkW/+TREfheXEvjs0joYM++FTCzYXrT8w?= =?us-ascii?Q?+Ep151/BFSixj5p5TXzfFTymuTPnkw3F1NBDOmX79/aGe1G4FvMuYSUImDOy?= =?us-ascii?Q?a/tk0GW09UdFIRAIM4mgiem6XRpfh95F/KvlSqthf7QB3zNrVrwGLQW5vrWU?= =?us-ascii?Q?8hEX3bbCzDyJih/FsL8Nf00Zmnl3yfINTvE9Vs/D8FT0pjY0MqyCgr339xlg?= =?us-ascii?Q?EEQbgh7gYnm7MPq4ixBa9CcW49/uIG+ca7nnAwrrsq3bzW+K8TYkds5Sj7py?= =?us-ascii?Q?+ttHCI6V7sdPHBq79yxg0MSPYd7nUa7UK1Y8mkjQocPX+my06Qh+TCc4jk5f?= =?us-ascii?Q?XBzuJFGZrY9mZFreHQGy1sN7STyqqSFZdyaz9TCP8XeKjn69EcTvWjAiberG?= =?us-ascii?Q?/8ul4rg/nTjlMJpYv9+oRkf0P/lffSDFu3o4I6proYPqiwSVWCpfDEnnHaPw?= =?us-ascii?Q?Czv6p6ju0My+LPZrfIshMIkHcHdIG4b+V4XgdL8xqlES/nOtgiQZejN2FmAg?= =?us-ascii?Q?6uJgbI8Zw2NzafRnrUq8fTq/KQQnhQweDXBcbqLhjonJJk3IWsv60sPWQM0a?= =?us-ascii?Q?6iFo8dpM+HgKrmutx/OfQbqZ8MLwB7THPg0NnS78VqtsGoAOaAc7xCfjXjJQ?= =?us-ascii?Q?o77d4X/JvUSxFWaBab3pCWgY0N6CXvO1bOrGKEqqa3sKhH6Y9jl6QqOogJC9?= =?us-ascii?Q?KFaL7TEmwbdfui9XatokTl1vBWU30LU/QWbNbP26duU1H3bT+iyuOt/9zr+g?= =?us-ascii?Q?6nWb+OM/o0IyUubasOuz9pTuTY0hXdEfAoD9OumJ2tNABUidpW6yHQJy5qh2?= =?us-ascii?Q?mdp054D1i7CTfwHK+V54ElynFkTfHQzCCTf6QM14hwYgy8pR5h/5LAfnZ714?= =?us-ascii?Q?QUv13VyCYsD9k6o9SYVVqR7rmZ5v/FhTZdvSVtPZ+ciu5y1bhp371p6NinhN?= =?us-ascii?Q?Tcx5xAolB5ORi7aGw7ed/VjOuOzGRndxf6p1I+q4Tk3m4YQnH3gVUT0NjqG0?= =?us-ascii?Q?pVhSfN9uRTd7WHlcUB1gQd4XKakIKMfDtYG3GU6I3IhhXfpS0Jqjn4e4oYsm?= =?us-ascii?Q?ZVDUeFHKrduouPciITg82L+FLP7SQZ6wepN3dujQlgg29d6rMbVrHOJsPEr8?= =?us-ascii?Q?YUQY9hwCBIGjsE2IAHmdmnEAXhXvmY83Nj66d?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 6:UzJYRrqNf5kMQoSzhCoNx8VLKo89H2ZPLN08Q53OQs5J7cibOeNspdXMk9rsMptKgfUbCMq2RqQNEPMVE1lZKZ+uY8iSmdr3IiAB0tMXip+dws3AFt8V5WKdItwA+6XZPhEovxWixjAkmurvQSRFxblQBY18906W6Sa0IzB2WM+hApUIYwlcO+9VDEmX1dciC9QN+MGIsC56PDiAJqy+YraE0DLqp21EtOepNpieRWXoD7tKWLjZXvRVmkPeP7/dJ08LeXYY6uF1p1eh617uQujJ5FfvSPD8UfvszXzTCLp+0l7qg9jWd9ALACDNlnuoQ/wfr2UsFXqHrTz3ju4S8vwoN4m5JUzV6PMYMERRuVPCw974izX2YfY50yh83QefBHN7UByEkNyeNHhtL/w+YnNjYsMRM65xUB4S2Re7YGGOgBtth513vRmu4iztTUxzZOFUWFIcjNsxYaeKcmaqLrFH+VqXn+uo6DBODQdVd5+F0iS/87k1x9svtqmMJLHxYLxRQrgzqc4n8CAnx69kng==; 5:LgTtNa9/hNigCbjTkW2Byas0iB/V9K3QFc3fvk70xagcq+okA4n5TUt5uAbYZOTx0N/QjxyU0VRpcFknMijUB7X8y0YVy7OHRo97C7x6W1trxQAnj/TspRV+/SmVXIVw1p4hIMw2LsVEck6V9z1HNA==; 24:/7vHNBt2XWQqJ58vjc2eSBK4LJrbZIlRpOflUyEBVChA/9wTMekAc08CnIqzBy49XFC6b3v4JSMPZ0ii8wLwJ6q65oOotwdyyj3MYgivCo0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1716; 7:njU4WnshuNrCcPIVRLhq7VX2Od/6/UyONVm0Wzv08Xn3FCfxVxnOiUxPd0oz7Lf07dcHcw0E0Goz0JB04jQ1H6nDsVrkb96E6WmGPjxYJd4Ga0WNV3CsYqu64wV9M5Qfagw+CYgV+yzMKBbayfHqDjbMZgVR43E1+Q5dM7CJwoIedD4lygM6RQK4g+Yl4QHxfcthr5KCxcVApFTtxG0DHedd/J1/qXKnxl3x5wvAfrB7e3zk6ZsuJ9xye0MKHAyZB2aPVeg6EskjSp4JHtKg1Icj7auBJLvKtptvUKeZJurho4PRFqCtSq6k5fDjTCqQ0abkgb84TROHXzGkzfDdlQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2017 10:11:36.5071 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1716 Subject: [dpdk-dev] [PATCH 6/6] eal: switchover to architecture specific rte pause function 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:41 -0000 Remove rte_pause() definition from rte_common.h and switchover to architecture specific rte_pause.h Signed-off-by: Jerin Jacob --- examples/distributor/main.c | 1 + examples/l2fwd-jobstats/main.c | 1 + examples/performance-thread/l3fwd-thread/main.c | 1 + examples/tep_termination/main.c | 1 + examples/vhost/main.c | 1 + examples/vhost_xen/main.c | 1 + lib/librte_distributor/rte_distributor.c | 2 ++ lib/librte_distributor/rte_distributor_v20.c | 2 ++ lib/librte_eal/common/eal_common_timer.c | 1 + lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h | 1 + lib/librte_eal/common/include/arch/x86/rte_spinlock.h | 1 + lib/librte_eal/common/include/generic/rte_rwlock.h | 1 + lib/librte_eal/common/include/generic/rte_spinlock.h | 1 + lib/librte_eal/common/include/rte_common.h | 15 --------------- lib/librte_eal/common/include/rte_eal_memconfig.h | 1 + lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 + lib/librte_hash/rte_cuckoo_hash.c | 1 + lib/librte_ring/rte_ring.h | 1 + lib/librte_timer/rte_timer.c | 1 + test/test/test_common.c | 1 + test/test/test_cryptodev.c | 1 + test/test/test_cryptodev_blockcipher.c | 1 + test/test/test_distributor_perf.c | 1 + test/test/test_eventdev_sw.c | 3 ++- test/test/test_ring_perf.c | 1 + test/test/test_timer.c | 1 + test/test/test_timer_perf.c | 1 + test/test/test_timer_racecond.c | 1 + 28 files changed, 30 insertions(+), 16 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index 8071f9195..cf8982a71 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -43,6 +43,7 @@ #include #include #include +#include #define RX_RING_SIZE 512 #define TX_RING_SIZE 512 diff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c index e6e6c2286..d21e8338e 100644 --- a/examples/l2fwd-jobstats/main.c +++ b/examples/l2fwd-jobstats/main.c @@ -67,6 +67,7 @@ #include #include #include +#include #define RTE_LOGTYPE_L2FWD RTE_LOGTYPE_USER1 diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c index 2d98473eb..f24409a32 100644 --- a/examples/performance-thread/l3fwd-thread/main.c +++ b/examples/performance-thread/l3fwd-thread/main.c @@ -73,6 +73,7 @@ #include #include #include +#include #include #include diff --git a/examples/tep_termination/main.c b/examples/tep_termination/main.c index cd6e3f1cf..224893413 100644 --- a/examples/tep_termination/main.c +++ b/examples/tep_termination/main.c @@ -50,6 +50,7 @@ #include #include #include +#include #include "main.h" #include "vxlan.h" diff --git a/examples/vhost/main.c b/examples/vhost/main.c index e07f86693..076935bf5 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -52,6 +52,7 @@ #include #include #include +#include #include "main.h" diff --git a/examples/vhost_xen/main.c b/examples/vhost_xen/main.c index d9ef140f7..e5166214c 100644 --- a/examples/vhost_xen/main.c +++ b/examples/vhost_xen/main.c @@ -48,6 +48,7 @@ #include #include #include +#include #include "main.h" #include "virtio-net.h" diff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c index e4dfa7f0e..32dd18edc 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -42,6 +42,8 @@ #include #include #include +#include + #include "rte_distributor_private.h" #include "rte_distributor.h" #include "rte_distributor_v20.h" diff --git a/lib/librte_distributor/rte_distributor_v20.c b/lib/librte_distributor/rte_distributor_v20.c index bb6c5d709..b09abecd5 100644 --- a/lib/librte_distributor/rte_distributor_v20.c +++ b/lib/librte_distributor/rte_distributor_v20.c @@ -41,6 +41,8 @@ #include #include #include +#include + #include "rte_distributor_v20.h" #include "rte_distributor_private.h" diff --git a/lib/librte_eal/common/eal_common_timer.c b/lib/librte_eal/common/eal_common_timer.c index 72656176e..ed0b16d05 100644 --- a/lib/librte_eal/common/eal_common_timer.c +++ b/lib/librte_eal/common/eal_common_timer.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "eal_private.h" diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h b/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h index af139c9d3..39815d9ee 100644 --- a/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h @@ -38,6 +38,7 @@ extern "C" { #endif #include +#include #include "generic/rte_spinlock.h" /* Fixme: Use intrinsics to implement the spinlock on Power architecture */ diff --git a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h index 8e630c219..5675c2b45 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h @@ -43,6 +43,7 @@ extern "C" { #include "rte_cpuflags.h" #include "rte_branch_prediction.h" #include "rte_common.h" +#include "rte_pause.h" #define RTE_RTM_MAX_RETRIES (10) #define RTE_XABORT_LOCK_BUSY (0xff) diff --git a/lib/librte_eal/common/include/generic/rte_rwlock.h b/lib/librte_eal/common/include/generic/rte_rwlock.h index 7a0fdc55c..fdb3113d3 100644 --- a/lib/librte_eal/common/include/generic/rte_rwlock.h +++ b/lib/librte_eal/common/include/generic/rte_rwlock.h @@ -52,6 +52,7 @@ extern "C" { #include #include +#include /** * The rte_rwlock_t type. diff --git a/lib/librte_eal/common/include/generic/rte_spinlock.h b/lib/librte_eal/common/include/generic/rte_spinlock.h index e51fc56ba..54f83a4c5 100644 --- a/lib/librte_eal/common/include/generic/rte_spinlock.h +++ b/lib/librte_eal/common/include/generic/rte_spinlock.h @@ -51,6 +51,7 @@ #ifdef RTE_FORCE_INTRINSICS #include #endif +#include /** * The rte_spinlock_t type. diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index e057f6e21..31d5021ec 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -294,21 +294,6 @@ rte_align64pow2(uint64_t v) /*********** Other general functions / macros ********/ -#ifdef __SSE2__ -#include -/** - * PAUSE instruction for tight loops (avoid busy waiting) - */ -static inline void -rte_pause (void) -{ - _mm_pause(); -} -#else -static inline void -rte_pause(void) {} -#endif - /** * Searches the input parameter for the least significant set bit * (starting from zero). diff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h b/lib/librte_eal/common/include/rte_eal_memconfig.h index 2b5e0b170..b9eee702e 100644 --- a/lib/librte_eal/common/include/rte_eal_memconfig.h +++ b/lib/librte_eal/common/include/rte_eal_memconfig.h @@ -39,6 +39,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 2e3bd12a4..3e9ac41ee 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -64,6 +64,7 @@ #include #include #include +#include #include "eal_private.h" #include "eal_vfio.h" diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c index 645c0cfab..83444d39d 100644 --- a/lib/librte_hash/rte_cuckoo_hash.c +++ b/lib/librte_hash/rte_cuckoo_hash.c @@ -57,6 +57,7 @@ #include #include #include +#include #include "rte_hash.h" #include "rte_cuckoo_hash.h" diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index 97f025a1f..5f93cb7a6 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -101,6 +101,7 @@ extern "C" { #include #include #include +#include #define RTE_TAILQ_RING_NAME "RTE_RING" diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 18782fab0..9994f5515 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -51,6 +51,7 @@ #include #include #include +#include #include "rte_timer.h" diff --git a/test/test/test_common.c b/test/test/test_common.c index 8effa2f9e..6e803f5d3 100644 --- a/test/test/test_common.c +++ b/test/test/test_common.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "test.h" diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index 029ce8a0f..671911a5d 100644 --- a/test/test/test_cryptodev.c +++ b/test/test/test_cryptodev.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/test/test/test_cryptodev_blockcipher.c b/test/test/test_cryptodev_blockcipher.c index 603c77652..ce350e39f 100644 --- a/test/test/test_cryptodev_blockcipher.c +++ b/test/test/test_cryptodev_blockcipher.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include diff --git a/test/test/test_distributor_perf.c b/test/test/test_distributor_perf.c index 732d86d0e..7d69887b9 100644 --- a/test/test/test_distributor_perf.c +++ b/test/test/test_distributor_perf.c @@ -40,6 +40,7 @@ #include #include #include +#include #define ITER_POWER_CL 25 /* log 2 of how many iterations for Cache Line test */ #define ITER_POWER 21 /* log 2 of how many iterations we do when timing. */ diff --git a/test/test/test_eventdev_sw.c b/test/test/test_eventdev_sw.c index b187d0290..a17adbfbe 100644 --- a/test/test/test_eventdev_sw.c +++ b/test/test/test_eventdev_sw.c @@ -47,8 +47,9 @@ #include #include #include - #include +#include + #include "test.h" #define MAX_PORTS 16 diff --git a/test/test/test_ring_perf.c b/test/test/test_ring_perf.c index ed89896b3..84d200332 100644 --- a/test/test/test_ring_perf.c +++ b/test/test/test_ring_perf.c @@ -37,6 +37,7 @@ #include #include #include +#include #include "test.h" diff --git a/test/test/test_timer.c b/test/test/test_timer.c index 2f6525a50..de0c312fa 100644 --- a/test/test/test_timer.c +++ b/test/test/test_timer.c @@ -136,6 +136,7 @@ #include #include #include +#include #define TEST_DURATION_S 1 /* in seconds */ #define NB_TIMER 4 diff --git a/test/test/test_timer_perf.c b/test/test/test_timer_perf.c index fa77efbd2..467ae13da 100644 --- a/test/test/test_timer_perf.c +++ b/test/test/test_timer_perf.c @@ -42,6 +42,7 @@ #include #include #include +#include #define MAX_ITERATIONS 1000000 diff --git a/test/test/test_timer_racecond.c b/test/test/test_timer_racecond.c index 7824ec4bf..5e08f06be 100644 --- a/test/test/test_timer_racecond.c +++ b/test/test/test_timer_racecond.c @@ -42,6 +42,7 @@ #include #include #include +#include #undef TEST_TIMER_RACECOND_VERBOSE -- 2.12.2