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-Tag: v2.6.31-rc1~330^2~226 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=28e72216d7e7af7050f171a87c1eecba93d01ea6;p=~shefty%2Frdma-dev.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 9054139795a..bb2f1b17fbf 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)