From 18dbfb93ed8aa67fc9266fa1a6ab40baaf54872a Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Thu, 29 Jun 2023 10:43:39 +0200 Subject: Fix compilation for DPDK22.11 ETH_LINK_SPEED_AUTONEG changed into RTE_ETH_LINK_SPEED_AUTONEG Signed-off-by: Luc Provoost Change-Id: Iababab5ce51b618cd97f8158de2e2979747b141c --- VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'VNFs') 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 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) -- cgit 1.2.3-korg