From: Eric Dumazet Date: Thu, 28 May 2009 10:44:30 +0000 (+0000) Subject: net: unset IFF_XMIT_DST_RELEASE in ipip_tunnel_setup() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28e72216d7e7af7050f171a87c1eecba93d01ea6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git net: unset IFF_XMIT_DST_RELEASE in ipip_tunnel_setup() ipip_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/ipip.c b/net/ipv4/ipip.c index 9054139795af..bb2f1b17fbf1 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -713,6 +713,7 @@ static void ipip_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 void ipip_tunnel_init(struct net_device *dev)