diff options
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/port_info')
-rw-r--r-- | VNFs/DPPD-PROX/helper-scripts/rapid/port_info/port_info.c | 5 |
1 files changed, 5 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 6f270136..79bd0c0b 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 @@ -18,6 +18,7 @@ #include <inttypes.h> #include <rte_eal.h> #include <rte_ethdev.h> +#include <rte_version.h> static const uint16_t rx_rings = 1, tx_rings = 1; static const struct rte_eth_conf port_conf = { .link_speeds = ETH_LINK_SPEED_AUTONEG }; @@ -33,7 +34,11 @@ port_info(void) if (ret_val != 0) return ret_val; +#if RTE_VERSION < RTE_VERSION_NUM(19,8,0,0) struct ether_addr addr; +#else + struct rte_ether_addr addr; +#endif rte_eth_macaddr_get(port_id, &addr); printf("Port %u MAC: %02" PRIx8 ":%02" PRIx8 ":%02" PRIx8 ":%02" PRIx8 ":%02" PRIx8 ":%02" PRIx8 "\n", |