path: root/drivers/net/ixgbe
diff options
authorIlya Maximets <>2018-10-10 17:12:20 +0300
committerFerruh Yigit <>2018-10-26 22:14:06 +0200
commitfd61c749dbb2224d1e988085340c22ab9c985243 (patch)
treece4ca3a3bb721289084b15ed8141c0cf4c83e65f /drivers/net/ixgbe
parenta51639cc720aa17922d4b479e9961169f3a36c64 (diff)
drivers/net: use sleep delay by default for Intel NICs
NICs uses different delays up to a second during their configuration. It makes no sense to busy-wait so long wasting CPU cycles and preventing any other threads to execute on the same CPU core. These busy polling are the rudiments that came from the kernel drivers where you can not sleep in interrupt context, but as we're in userspace, we're able and should sleep to allow other threads to run. Delays never called on rx/tx path, so this should not affect performance. Signed-off-by: Ilya Maximets <> Reviewed-by: Ferruh Yigit <>
Diffstat (limited to 'drivers/net/ixgbe')
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/base/ixgbe_osdep.h b/drivers/net/ixgbe/base/ixgbe_osdep.h
index e648ea4..ea8dc1c 100644
--- a/drivers/net/ixgbe/base/ixgbe_osdep.h
+++ b/drivers/net/ixgbe/base/ixgbe_osdep.h
@@ -21,7 +21,7 @@
#define ASSERT(x) if(!(x)) rte_panic("IXGBE: x")
-#define DELAY(x) rte_delay_us(x)
+#define DELAY(x) rte_delay_us_sleep(x)
#define usec_delay(x) DELAY(x)
#define msec_delay(x) DELAY(1000*(x))
diff --git a/drivers/net/ixgbe/ b/drivers/net/ixgbe/
index 02d5ef5..544a141 100644
--- a/drivers/net/ixgbe/
+++ b/drivers/net/ixgbe/
@@ -5,10 +5,11 @@ version = 2
+allow_experimental_apis = true
objs = [base_objs]
-allow_experimental_apis = true
sources = files(