From: Eric Dumazet Date: Thu, 28 May 2009 22:35:10 +0000 (+0000) Subject: net: unset IFF_XMIT_DST_RELEASE in ipgre_tunnel_setup() X-Git-Tag: v3.0~8655^2~301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108bfa895cacd1a7c1767e85be105b213e5dce50;p=platform%2Fkernel%2Flinux-amlogic.git net: unset IFF_XMIT_DST_RELEASE in ipgre_tunnel_setup() ipgre_tunnel_xmit() might need skb->dst, so tell dev_hard_start_xmit() to no release it. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index e62510d..77436e2 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1238,6 +1238,7 @@ static void ipgre_tunnel_setup(struct net_device *dev) dev->iflink = 0; dev->addr_len = 4; dev->features |= NETIF_F_NETNS_LOCAL; + dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; } static int ipgre_tunnel_init(struct net_device *dev)