aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/dpdk/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/dpdk/main.c')
-rw-r--r--src/vnet/devices/dpdk/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vnet/devices/dpdk/main.c b/src/vnet/devices/dpdk/main.c
index 1e6ec2f892f..9ea3aa04b09 100644
--- a/src/vnet/devices/dpdk/main.c
+++ b/src/vnet/devices/dpdk/main.c
@@ -61,14 +61,12 @@ rte_delay_us_override (unsigned us)
return 0; // no override
}
-#if RTE_VERSION >= RTE_VERSION_NUM(16, 11, 0, 0)
static void
rte_delay_us_override_cb (unsigned us)
{
if (rte_delay_us_override (us) == 0)
rte_delay_us_block (us);
}
-#endif
static clib_error_t * dpdk_main_init (vlib_main_t * vm)
{
@@ -77,12 +75,9 @@ static clib_error_t * dpdk_main_init (vlib_main_t * vm)
if ((error = vlib_call_init_function (vm, dpdk_init)))
return error;
-#if DPDK
-#if RTE_VERSION >= RTE_VERSION_NUM(16, 11, 0, 0)
/* register custom delay function */
rte_delay_us_callback_register (rte_delay_us_override_cb);
-#endif
-#endif
+
return error;
}