aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-01-14 16:37:28 -0800
committerGitHub <noreply@github.com>2020-01-14 16:37:28 -0800
commit0023a96f804945602ac1fc0d1460b246d2ab842e (patch)
treefdb72153228a75c2d93b5798303109aa40668213 /example
parent9f7b1c84f2d07fff6ca5b59e30615a7a41f1b25d (diff)
parentcbabbd58652432e5bc3716844d51812ecc577c96 (diff)
Merge pull request #828 from vitalivanov/pull_764
example: fix compilation of ndpireader on latest dpdk.
Diffstat (limited to 'example')
1 files changed, 7 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index f8dd315d0..1376f9b8d 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1792,8 +1792,15 @@ u_int32_t ethernet_crc32(const void* data, size_t n_bytes) {
#ifdef USE_DPDK
+#include <rte_version.h>
+#include <rte_ether.h>
+
static const struct rte_eth_conf port_conf_default = {
+#if (RTE_VERSION < RTE_VERSION_NUM(19, 8, 0, 0))
.rxmode = { .max_rx_pkt_len = ETHER_MAX_LEN }
+#else
+ .rxmode = { .max_rx_pkt_len = RTE_ETHER_MAX_LEN }
+#endif
};
/* ************************************ */