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/transport/dpdk_simple.cpp | |
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/transport/dpdk_simple.cpp')
-rw-r--r-- | host/lib/transport/dpdk_simple.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/transport/dpdk_simple.cpp b/host/lib/transport/dpdk_simple.cpp index 835885cba..0e52d425d 100644 --- a/host/lib/transport/dpdk_simple.cpp +++ b/host/lib/transport/dpdk_simple.cpp @@ -129,9 +129,9 @@ public: // Extract the sender's address. This is only possible because we know // the memory layout of the buff - struct udp_hdr* udp_hdr_end = (struct udp_hdr*)buff->data(); - struct ipv4_hdr* ip_hdr_end = (struct ipv4_hdr*)(&udp_hdr_end[-1]); - struct ipv4_hdr* ip_hdr = (struct ipv4_hdr*)(&ip_hdr_end[-1]); + struct rte_udp_hdr* rte_udp_hdr_end = (struct rte_udp_hdr*)buff->data(); + struct rte_ipv4_hdr* ip_hdr_end = (struct rte_ipv4_hdr*)(&rte_udp_hdr_end[-1]); + struct rte_ipv4_hdr* ip_hdr = (struct rte_ipv4_hdr*)(&ip_hdr_end[-1]); _last_recv_addr = ip_hdr->src_addr; // Extract the buffer data |