Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c294c4c
)
dpdk backward compatibility
88/4388/1
author
Christophe Fontaine
<
[email protected]
>
Mon, 19 Dec 2016 13:44:51 +0000
(14:44 +0100)
committer
Christophe Fontaine
<
[email protected]
>
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 <
[email protected]
>
vpp/vnet/main.c
patch
|
blob
|
history
diff --git
a/vpp/vnet/main.c
b/vpp/vnet/main.c
index
6dac33c
..
56790fd
100644
(file)
--- 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)