From 3e532aca841cbd004515930496495bea50e9b52a Mon Sep 17 00:00:00 2001 From: Xavier Simonart Date: Wed, 4 Jul 2018 11:46:25 +0200 Subject: Initial support for DPDK 18.05 This patch makes PROX compile with DPDK 18.05. However some features are disabled or will not work as expected such as: "mem info" command "police" mode Those will need to be fixed later (see DPDK1805 within code). Change-Id: Ie7d72f6ab3db68bc093c42d60d125fe86f8fbda7 Signed-off-by: Xavier Simonart Signed-off-by: Patrice Buriez --- VNFs/DPPD-PROX/handle_nsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'VNFs/DPPD-PROX/handle_nsh.c') diff --git a/VNFs/DPPD-PROX/handle_nsh.c b/VNFs/DPPD-PROX/handle_nsh.c index 65a80c3d..dbd0e655 100644 --- a/VNFs/DPPD-PROX/handle_nsh.c +++ b/VNFs/DPPD-PROX/handle_nsh.c @@ -82,7 +82,7 @@ static inline uint8_t handle_decap_nsh(__attribute__((unused)) struct task_decap /* check the Next Protocol field in VxLAN-GPE header */ vxlan_gpe_hdr = (struct vxlan_gpe_hdr *)(((unsigned char *)eth_hdr) + sizeof(struct ether_hdr) + sizeof(struct ipv4_hdr) + sizeof(struct udp_hdr)); - if (vxlan_gpe_hdr->next_proto != VXLAN_GPE_NP) { + if (vxlan_gpe_hdr->proto != VXLAN_GPE_NP) { mbuf->udata64 = 0; return 0; } @@ -168,7 +168,7 @@ static inline uint8_t handle_encap_nsh(__attribute__((unused)) struct task_encap /* check the Next Protocol field in VxLAN-GPE header */ vxlan_gpe_hdr = (struct vxlan_gpe_hdr *)(((unsigned char *)eth_hdr) + sizeof(struct ether_hdr) + sizeof(struct ipv4_hdr) + sizeof(struct udp_hdr)); - if (vxlan_gpe_hdr->next_proto != VXLAN_GPE_NP) + if (vxlan_gpe_hdr->proto != VXLAN_GPE_NP) return 0; /* decrement Service Index in NSH header */ -- cgit 1.2.3-korg