summaryrefslogtreecommitdiffstats
path: root/dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-02-28 23:26:30 +0100
committerDamjan Marion <damarion@cisco.com>2017-02-28 23:26:30 +0100
commitf7c379403a98cf060d28bac24916c51067c4ec90 (patch)
tree2abcefb884b9a9894a8319c243b5b0fc223eea82 /dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch
parent7100b9cc6f1342a320c372bf746ae85cf815c41b (diff)
dpdk: retire support for dpdk 16.07
Change-Id: I8585552c026415340fe9fd0458cb8450da3c4ae2 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch')
-rw-r--r--dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch b/dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch
deleted file mode 100644
index 8a32f6009ca..00000000000
--- a/dpdk/dpdk-16.07_patches/0006-Allow-applications-to-override-rte_delay_us.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 3432c140c9c51e671a4d58bb428d5852426add1f Mon Sep 17 00:00:00 2001
-From: "Todd Foggoa (tfoggoa)" <tfoggoa@cisco.com>
-Date: Wed, 3 Feb 2016 08:35:27 -0800
-Subject: [PATCH 5/6] Allow applications to override rte_delay_us()
-
-Some applications may wish to define their own implentation of
-usec delay other than the existing blocking one. The default
-behavior remains unchanged.
-
-Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
----
- lib/librte_eal/common/eal_common_timer.c | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/lib/librte_eal/common/eal_common_timer.c b/lib/librte_eal/common/eal_common_timer.c
-index c4227cd..cc26b91 100644
---- a/lib/librte_eal/common/eal_common_timer.c
-+++ b/lib/librte_eal/common/eal_common_timer.c
-@@ -47,9 +47,21 @@
- /* The frequency of the RDTSC timer resolution */
- static uint64_t eal_tsc_resolution_hz;
-
-+/* Allow an override of the rte_delay_us function */
-+int rte_delay_us_override (unsigned us) __attribute__((weak));
-+
-+int
-+rte_delay_us_override(__attribute__((unused)) unsigned us)
-+{
-+ return 0;
-+}
-+
- void
- rte_delay_us(unsigned us)
- {
-+ if (rte_delay_us_override(us))
-+ return;
-+
- const uint64_t start = rte_get_timer_cycles();
- const uint64_t ticks = (uint64_t)us * rte_get_timer_hz() / 1E6;
- while ((rte_get_timer_cycles() - start) < ticks)
---
-2.7.4
-