summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorLuc Provoost <luc.provoost@gmail.com>2023-06-29 10:43:39 +0200
committerLuc Provoost <luc.provoost@gmail.com>2023-06-29 10:43:39 +0200
commit18dbfb93ed8aa67fc9266fa1a6ab40baaf54872a (patch)
tree07fa12fc1cd25b35e1d43efe6d167010230c7145 /VNFs
parent7e66b4a8a0658bd5912f85a84f1a9f86a3fdd253 (diff)
Fix compilation for DPDK22.11
ETH_LINK_SPEED_AUTONEG changed into RTE_ETH_LINK_SPEED_AUTONEG Signed-off-by: Luc Provoost <luc.provoost@gmail.com> Change-Id: Iababab5ce51b618cd97f8158de2e2979747b141c
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c b/VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c
index 79bd0c0b..917c0636 100644
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c
@@ -21,7 +21,11 @@
#include <rte_version.h>
static const uint16_t rx_rings = 1, tx_rings = 1;
+#if RTE_VERSION < RTE_VERSION_NUM(21,11,0,0)
static const struct rte_eth_conf port_conf = { .link_speeds = ETH_LINK_SPEED_AUTONEG };
+#else
+static const struct rte_eth_conf port_conf = { .link_speeds = RTE_ETH_LINK_SPEED_AUTONEG };
+#endif
static inline int
port_info(void)