X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Fnet%2Fgre.h;h=6268655fc877cf8a31546bef441bcc4aad233b7b;hb=29c71cfa0c137abd49bfa346c1b871d2543071ae;hp=a6f29c45c62f1235874563ae906f8b01dc4aa3ed;hpb=72310b041cfa7d8e2ee5fb585348223ac7c22497;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/net/gre.h b/datapath/linux/compat/include/net/gre.h index a6f29c45c..6268655fc 100644 --- a/datapath/linux/compat/include/net/gre.h +++ b/datapath/linux/compat/include/net/gre.h @@ -4,6 +4,7 @@ #include #include +#include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37) || \ defined(HAVE_GRE_CISCO_REGISTER) #include_next @@ -78,6 +79,8 @@ static inline __be16 tnl_flags_to_gre_flags(__be16 tflags) #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) */ #endif /* HAVE_GRE_CISCO_REGISTER */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0) + #define gre_build_header rpl_gre_build_header void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, int hdr_len); @@ -98,5 +101,6 @@ static inline int ip_gre_calc_hlen(__be16 o_flags) addend += 4; return addend; } +#endif #endif