Commit 28e72216 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

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: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdd0db05
...@@ -713,6 +713,7 @@ static void ipip_tunnel_setup(struct net_device *dev) ...@@ -713,6 +713,7 @@ static void ipip_tunnel_setup(struct net_device *dev)
dev->iflink = 0; dev->iflink = 0;
dev->addr_len = 4; dev->addr_len = 4;
dev->features |= NETIF_F_NETNS_LOCAL; dev->features |= NETIF_F_NETNS_LOCAL;
dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;
} }
static void ipip_tunnel_init(struct net_device *dev) static void ipip_tunnel_init(struct net_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment