Commit 108bfa89 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

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: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a489e51c
...@@ -1238,6 +1238,7 @@ static void ipgre_tunnel_setup(struct net_device *dev) ...@@ -1238,6 +1238,7 @@ static void ipgre_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 int ipgre_tunnel_init(struct net_device *dev) static int ipgre_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