summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fontaine <christophe.fontaine@qosmos.com>2016-12-19 14:44:51 +0100
committerChristophe Fontaine <christophe.fontaine@qosmos.com>2016-12-19 14:51:57 +0100
commit4db5b468581961ec1c446bf77c133985e61aca92 (patch)
tree8a47ff9d9b0c96e5514963e4ef9e903b843cae1b
parentc294c4c92e3e58bccc6926a5e9f96d302018238e (diff)
dpdk backward compatibility
When building with an older dpdk version, the build fails as the function 'rte_delay_us_override_cb' is not used. Change-Id: I4eb5d1c5b357331cf020efd8c6492dd8c82710ee Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
-rw-r--r--vpp/vnet/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpp/vnet/main.c b/vpp/vnet/main.c
index 6dac33cb0e4..56790fda1f0 100644
--- a/vpp/vnet/main.c
+++ b/vpp/vnet/main.c
@@ -68,6 +68,7 @@ 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)
{
@@ -75,6 +76,7 @@ rte_delay_us_override_cb (unsigned us)
rte_delay_us_block (us);
}
#endif
+#endif
static void
vpe_main_init (vlib_main_t * vm)