aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorAndrew Lynch <andrew.lynch@ni.com>2021-11-09 09:12:08 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-12-06 13:22:03 -0800
commitb17d2dfa988344debe63f1b5d7e8556fef87218f (patch)
treea629c05ddf5c880eb475a36db773aaead8977cf9 /host/tests
parent8ce91bc7383409602206128839a0cf2daa932319 (diff)
downloaduhd-b17d2dfa988344debe63f1b5d7e8556fef87218f.tar.gz
uhd-b17d2dfa988344debe63f1b5d7e8556fef87218f.tar.bz2
uhd-b17d2dfa988344debe63f1b5d7e8556fef87218f.zip
dpdk: Upgrade to DPDK 19.11 API
Support DPDK versions 19.11 and 20.11
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/dpdk_port_test.cpp4
1 files changed, 2 insertions, 2 deletions
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;