[PATCH] ebpf: avoid to include if_tunnel.h
authorEric Leblond <eric@regit.org>
Thu, 31 Oct 2019 12:29:56 +0000 (13:29 +0100)
committerSascha Steinbiss <satta@debian.org>
Fri, 11 Dec 2020 08:35:57 +0000 (08:35 +0000)
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

index 2ee924572d6700d70090c6c85d276cc893d3bc79..46af2a9cac30727eee5bfe2d0404580842778c89 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/if_ether.h>
 #include <linux/if_packet.h>
 #include <linux/if_vlan.h>
-#include <linux/if_tunnel.h>
 #include <linux/ip.h>
 #include <linux/ipv6.h>
 #include <linux/tcp.h>
 
 #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 */