From: Alexey Kodanev <redacted>
Date: Fri, 3 Mar 2017 15:37:32 +0300
quoted hunk ↗ jump to hunk
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index b67719f..18383ef 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -960,7 +960,10 @@ static int __ip_append_data(struct sock *sk,
cork->length += length;
if ((((length + fragheaderlen) > mtu) || (skb && skb_is_gso(skb))) &&
(sk->sk_protocol == IPPROTO_UDP) &&
- (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len &&
+ (rt->dst.dev->features & NETIF_F_UFO) &&
+#ifdef CONFIG_XFRM
+ !rt->dst.xfrm &&
+#endif
As Steffen has suggested, please use dst_xfrm().