From b17d2dfa988344debe63f1b5d7e8556fef87218f Mon Sep 17 00:00:00 2001 From: Andrew Lynch Date: Tue, 9 Nov 2021 09:12:08 -0600 Subject: dpdk: Upgrade to DPDK 19.11 API Support DPDK versions 19.11 and 20.11 --- host/tests/dpdk_port_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/tests') diff --git a/host/tests/dpdk_port_test.cpp b/host/tests/dpdk_port_test.cpp index 323d02e48..4932b167d 100644 --- a/host/tests/dpdk_port_test.cpp +++ b/host/tests/dpdk_port_test.cpp @@ -120,10 +120,10 @@ int main(int argc, char** argv) // Attach link std::cout << "Attaching UDP send link..." << std::endl; io_srv->attach_send_link(link); - struct ether_addr dest_mac; + struct rte_ether_addr dest_mac; link->get_remote_mac(dest_mac); char mac_str[20]; - ether_format_addr(mac_str, 20, &dest_mac); + rte_ether_format_addr(mac_str, 20, &dest_mac); std::cout << "Remote MAC address is " << mac_str << std::endl; std::cout << std::endl; std::cout << "Attaching UDP recv link..." << std::endl; -- cgit v1.2.3