diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-05-28 14:44:30 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-29 12:46:27 +0400 |
commit | 28e72216d7e7af7050f171a87c1eecba93d01ea6 (patch) | |
tree | f29f63e75b5b3e9af58b043d7aa5b1b85dc15b4b /net/ipv4 | |
parent | cdd0db058d64f2619b08e7d098ee0014aa0a5bc1 (diff) | |
download | linux-28e72216d7e7af7050f171a87c1eecba93d01ea6.tar.xz |
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 <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ipip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |