From 90c35d451412e144941b16fd83bc302f3d921863 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 31 Oct 2019 13:29:56 +0100 Subject: [PATCH] [PATCH] ebpf: avoid to include if_tunnel.h This is causing a dependency issue as file from another architecture have to be installed. Gbp-Pq: Name avoid-to-include-if_tunnel-h.patch --- ebpf/xdp_lb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ebpf/xdp_lb.c b/ebpf/xdp_lb.c index dc1d8660..4db31868 100644 --- a/ebpf/xdp_lb.c +++ b/ebpf/xdp_lb.c @@ -26,7 +26,6 @@ /* Workaround to avoid the need of 32bit headers */ #define _LINUX_IF_H #define IFNAMSIZ 16 -#include #include #include #include @@ -35,6 +34,12 @@ #include "hash_func01.h" +#define GRE_CSUM __cpu_to_be16(0x8000) +#define GRE_ROUTING __cpu_to_be16(0x4000) +#define GRE_KEY __cpu_to_be16(0x2000) +#define GRE_SEQ __cpu_to_be16(0x1000) +#define GRE_VERSION __cpu_to_be16(0x0007) + #define LINUX_VERSION_CODE 263682 /* Hashing initval */ -- 2.30.2