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/lib/transport/dpdk_simple.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/transport/dpdk_simple.cpp') 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 -- cgit v1.2.3