From: Eric Dumazet Date: Thu, 8 Sep 2016 22:40:48 +0000 (-0700) Subject: ip_tunnel: do not clear l4 hashes X-Git-Tag: v4.9-rc1~127^2~244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf8d85d4f907d2156e6e5d2831378527957d9bde;p=platform%2Fkernel%2Flinux-exynos.git ip_tunnel: do not clear l4 hashes If skb has a valid l4 hash, there is no point clearing hash and force a further flow dissection when a tunnel encapsulation is added. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunnel_core.c index 0f227db..777bc18 100644 --- a/net/ipv4/ip_tunnel_core.c +++ b/net/ipv4/ip_tunnel_core.c @@ -69,7 +69,7 @@ void iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, skb_scrub_packet(skb, xnet); - skb_clear_hash(skb); + skb_clear_hash_if_not_l4(skb); skb_dst_set(skb, &rt->dst); memset(IPCB(skb), 0, sizeof(*IPCB(skb)));