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/dpdk_io_service.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/dpdk_io_service.hpp')
-rw-r--r-- | host/lib/include/uhdlib/transport/dpdk_io_service.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/include/uhdlib/transport/dpdk_io_service.hpp b/host/lib/include/uhdlib/transport/dpdk_io_service.hpp index 223bed249..a10cd92ab 100644 --- a/host/lib/include/uhdlib/transport/dpdk_io_service.hpp +++ b/host/lib/include/uhdlib/transport/dpdk_io_service.hpp @@ -160,7 +160,7 @@ private: * \param ip the IPv4 address for which the caller is seeking a MAC address */ int _send_arp_request( - dpdk::dpdk_port* port, dpdk::queue_id_t queue, dpdk::ipv4_addr ip); + dpdk::dpdk_port* port, dpdk::queue_id_t queue, dpdk::rte_ipv4_addr ip); /*! * Helper function for I/O thread to process an ARP request/reply @@ -170,7 +170,7 @@ private: * \param arp_frame a pointer to the ARP frame */ int _process_arp( - dpdk::dpdk_port* port, dpdk::queue_id_t queue_id, struct arp_hdr* arp_frame); + dpdk::dpdk_port* port, dpdk::queue_id_t queue_id, struct rte_arp_hdr* arp_frame); /*! * Helper function for I/O thread to process an IPv4 packet @@ -179,7 +179,7 @@ private: * \param mbuf a pointer to the packet buffer container * \param pkt a pointer to the IPv4 header of the packet */ - int _process_ipv4(dpdk::dpdk_port* port, struct rte_mbuf* mbuf, struct ipv4_hdr* pkt); + int _process_ipv4(dpdk::dpdk_port* port, struct rte_mbuf* mbuf, struct rte_ipv4_hdr* pkt); /*! * Helper function for I/O thread to process an IPv4 packet @@ -191,7 +191,7 @@ private: * IPv4 address */ int _process_udp( - dpdk::dpdk_port* port, struct rte_mbuf* mbuf, struct udp_hdr* pkt, bool bcast); + dpdk::dpdk_port* port, struct rte_mbuf* mbuf, struct rte_udp_hdr* pkt, bool bcast); /*! * Helper function to get a unique client ID |