summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/handle_nsh.c
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2018-07-27 16:13:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-27 16:13:49 +0000
commit974e4b3123b7d926d548d8924b41e8b732e2732f (patch)
treeb3cb268bc4b95d1a617710d3e0346234bcf1dcd1 /VNFs/DPPD-PROX/handle_nsh.c
parent2e924e65c5ac509925bc5a28b724db108fe99111 (diff)
parent3e532aca841cbd004515930496495bea50e9b52a (diff)
Merge "Initial support for DPDK 18.05"
Diffstat (limited to 'VNFs/DPPD-PROX/handle_nsh.c')
-rw-r--r--VNFs/DPPD-PROX/handle_nsh.c4
1 files changed, 2 insertions, 2 deletions
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 */