dpdk backward compatibility 88/4388/1
authorChristophe Fontaine <christophe.fontaine@qosmos.com>
Mon, 19 Dec 2016 13:44:51 +0000 (14:44 +0100)
committerChristophe Fontaine <christophe.fontaine@qosmos.com>
Mon, 19 Dec 2016 13:51:57 +0000 (14:51 +0100)
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>
vpp/vnet/main.c

index 6dac33c..56790fd 100644 (file)
@@ -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)