summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/compat
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2022-03-07 18:51:17 +0000
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:52:02 +0300
commitafd77913f88bc6bca647b03813a0ca756f4e7126 (patch)
tree5fd73364f5824e7f6be0596a544ac284b8b14fe6 /drivers/net/wireguard/compat
parente1efec1941665029f1f398496a33026d61f310c8 (diff)
wireguard: compat: udp_tunnel: Account for kernel 4.4 BPF backport
Function 'udp_tunnel6_xmit_skb' had been redefined in commit 4d5805d. Compat hack must be removed to fix compilation issue. Change-Id: I155b1c45ef57ca2be4fb3f005a5df174fc9041b9
Diffstat (limited to 'drivers/net/wireguard/compat')
-rw-r--r--drivers/net/wireguard/compat/udp_tunnel/udp_tunnel_partial_compat.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireguard/compat/udp_tunnel/udp_tunnel_partial_compat.h b/drivers/net/wireguard/compat/udp_tunnel/udp_tunnel_partial_compat.h
index 0605896e902f..4b536e1dd94d 100644
--- a/drivers/net/wireguard/compat/udp_tunnel/udp_tunnel_partial_compat.h
+++ b/drivers/net/wireguard/compat/udp_tunnel/udp_tunnel_partial_compat.h
@@ -144,12 +144,6 @@ static inline void __compat_fake_destructor(struct sk_buff *skb)
#define udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l) do { struct net_device *dev__ = (c)->dev; int ret__ = udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l); iptunnel_xmit_stats(ret__, &dev__->stats, dev__->tstats); } while (0)
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) && IS_ENABLED(CONFIG_IPV6) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
-#include <linux/if.h>
-#include <net/udp_tunnel.h>
-#define udp_tunnel6_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l) udp_tunnel6_xmit_skb(a, b, c, d, e, f, g, h, j, k, l)
-#endif
-
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)