Skip to contentSkip to conversation

net: unset IFF_XMIT_DST_RELEASE in ipip_tunnel_setup()

PATCH Applied Eric Dumazet 2 participants 4 messages May 28, 2009 – May 29, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

net/ipv4/ipip.c +1 -0
index 9054139..bb2f1b1 100644
@@ -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)
#1 lore raw

PATCH 1/1 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.

---

net/ipv4/ip_gre.c +1 -0
index e62510d..77436e2 100644
@@ -1238,6 +1238,7 @@ static void ipgre_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 int ipgre_tunnel_init(struct net_device *dev)
maintainer Applied
#2 lore raw

Re: [PATCH net-next-2.6] net: unset IFF_XMIT_DST_RELEASE in ipgre_tunnel_setup()

From: Eric Dumazet <[email protected]>
Date: Fri, 29 May 2009 10:35:10 +0200

Quoted 4 lines

ipgre_tunnel_xmit() might need skb->dst, so tell dev_hard_start_xmit() to no release it.

Applied.