Fix compilation for DPDK22.11 55/74055/1
authorLuc Provoost <luc.provoost@gmail.com>
Thu, 29 Jun 2023 08:43:39 +0000 (10:43 +0200)
committerLuc Provoost <luc.provoost@gmail.com>
Thu, 29 Jun 2023 08:43:39 +0000 (10:43 +0200)
ETH_LINK_SPEED_AUTONEG changed into RTE_ETH_LINK_SPEED_AUTONEG

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: Iababab5ce51b618cd97f8158de2e2979747b141c

VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c

index 79bd0c0..917c063 100644 (file)
 #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)