diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-05-28 18:35:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-29 04:46:29 -0400 |
commit | 108bfa895cacd1a7c1767e85be105b213e5dce50 (patch) | |
tree | 4e1aebbe9ad638f36539278b98342edaab5f46df /net/ipv4/ip_gre.c | |
parent | a489e51c1a69c3aa7e7aea925f71c92be5cedbb1 (diff) |
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: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index e62510d5ea5a..77436e2732eb 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1238,6 +1238,7 @@ static void ipgre_tunnel_setup(struct net_device *dev) | |||
1238 | dev->iflink = 0; | 1238 | dev->iflink = 0; |
1239 | dev->addr_len = 4; | 1239 | dev->addr_len = 4; |
1240 | dev->features |= NETIF_F_NETNS_LOCAL; | 1240 | dev->features |= NETIF_F_NETNS_LOCAL; |
1241 | dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; | ||
1241 | } | 1242 | } |
1242 | 1243 | ||
1243 | static int ipgre_tunnel_init(struct net_device *dev) | 1244 | static int ipgre_tunnel_init(struct net_device *dev) |