net: unset IFF_XMIT_DST_RELEASE in ipip_tunnel_setup()
Subsystems (3)
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.
Signed-off-by Eric Dumazet <[email protected]>
---
net/ipv4/ipip.c +1 -0
@@ -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)
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.
Signed-off-by Eric Dumazet <[email protected]>
---
net/ipv4/ip_gre.c +1 -0
@@ -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)
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 needskb->dst, so telldev_hard_start_xmit()to no release it.Signed-off-by Eric Dumazet <[email protected]>
Applied.
From: Eric Dumazet <[email protected]>
Date: Thu, 28 May 2009 22:44:30 +0200
Quoted 4 lines
ipip_tunnel_xmit()might needskb->dst, so telldev_hard_start_xmit()to no release it.Signed-off-by Eric Dumazet <[email protected]>
Applied.