diff options
author | Andrew Lynch <andrew.lynch@ni.com> | 2021-11-09 09:12:08 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-12-06 13:22:03 -0800 |
commit | b17d2dfa988344debe63f1b5d7e8556fef87218f (patch) | |
tree | a629c05ddf5c880eb475a36db773aaead8977cf9 /host/lib/include/uhdlib/transport/udp_dpdk_link.hpp | |
parent | 8ce91bc7383409602206128839a0cf2daa932319 (diff) | |
download | uhd-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/lib/include/uhdlib/transport/udp_dpdk_link.hpp')
-rw-r--r-- | host/lib/include/uhdlib/transport/udp_dpdk_link.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp b/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp index 305d35319..3fce165f0 100644 --- a/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp +++ b/host/lib/include/uhdlib/transport/udp_dpdk_link.hpp @@ -120,9 +120,9 @@ public: * * \param mac the remote host's MAC address */ - inline void set_remote_mac(struct ether_addr& mac) + inline void set_remote_mac(struct rte_ether_addr& mac) { - ether_addr_copy(&mac, &_remote_mac); + rte_ether_addr_copy(&mac, &_remote_mac); } /*! @@ -130,9 +130,9 @@ public: * * \param mac Where to write the MAC address */ - inline void get_remote_mac(struct ether_addr& dst) + inline void get_remote_mac(struct rte_ether_addr& dst) { - ether_addr_copy(&_remote_mac, &dst); + rte_ether_addr_copy(&_remote_mac, &dst); } /*! @@ -244,7 +244,7 @@ private: //! Remote IPv4 address, in network order uint32_t _remote_ipv4; //! Remote host's MAC address - struct ether_addr _remote_mac; + struct rte_ether_addr _remote_mac; //! Number of recv frames is not validated size_t _num_recv_frames; //! Maximum bytes of UDP payload data in recv frame |