Skip to content

Commit

Permalink
net: unset IFF_XMIT_DST_RELEASE in ipip_tunnel_setup()
Browse files Browse the repository at this point in the history
ipip_tunnel_xmit() might need skb->dst, so tell dev_hard_start_xmit()
to no release it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 29, 2009
1 parent cdd0db0 commit 28e7221
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28e7221

Please sign in to comment.