You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
720 B

  1. diff --git a/datapath/linux/compat/include/net/vxlan.h b/datapath/linux/compat/include/net/vxlan.h
  2. index 0d60c18..db4dfb6 100644
  3. --- a/datapath/linux/compat/include/net/vxlan.h
  4. +++ b/datapath/linux/compat/include/net/vxlan.h
  5. @@ -99,8 +99,13 @@ static inline int rpl_vxlan_xmit_skb(struct vxlan_sock *vs,
  6. return -ENOSYS;
  7. }
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
  9. + return vxlan_xmit_skb(rt, vs->sock->sk, skb, src, dst, tos, ttl, df,
  10. + src_port, dst_port, md, xnet, vxflags);
  11. +#else
  12. return vxlan_xmit_skb(rt, skb, src, dst, tos, ttl, df,
  13. src_port, dst_port, md, xnet, vxflags);
  14. +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) */
  15. }
  16. #define vxlan_xmit_skb rpl_vxlan_xmit_skb