Allow latency thresholds for TST009 testing
[samplevnf.git] / VNFs / DPPD-PROX / vxlangpe_nsh.h
index 2e7cfc7..7aebf38 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef _VXLANGPE_NSH_H_
 #define _VXLANGPE_NSH_H_
 
+#include <rte_version.h>
+
 struct nsh_hdr {
        uint16_t version :2;
        uint16_t oa_flag :1;
@@ -33,12 +35,13 @@ struct nsh_hdr {
        uint32_t ctx_4;
 } __attribute__((__packed__));
 
-struct vxlan_gpe_hdr {
+#if RTE_VERSION < RTE_VERSION_NUM(18,5,0,0)
+typedef struct prox_rte_vxlan_gpe_hdr {
        uint8_t flag_0;
        uint8_t flag_1;
        uint8_t reserved;
-       uint8_t next_proto;
+       uint8_t proto;
        uint32_t vni_res;
-} __attribute__((__packed__));
-
+} __attribute__((__packed__)) prox_rte_vxlan_gpe_hdr;
+#endif
 #endif /* _VXLANGPE_NSH_H_ */