From: Eric Dumazet Date: Tue, 19 May 2009 21:24:37 +0000 (-0700) Subject: ppp: unset IFF_XMIT_DST_RELEASE in ppp_setup() X-Git-Tag: v3.0~8655^2~437 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b2d850db275a8934db7e09d79a716435c7b3e0c;p=platform%2Fkernel%2Flinux-amlogic.git ppp: unset IFF_XMIT_DST_RELEASE in ppp_setup() Jarek pointed pppoe can call back dev_queue_xmit(), and might need skb->dst, so its safer to unset IFF_XMIT_DST_RELEASE on ppp devices. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c index 8ee9142..639d11b 100644 --- a/drivers/net/ppp_generic.c +++ b/drivers/net/ppp_generic.c @@ -1054,6 +1054,7 @@ static void ppp_setup(struct net_device *dev) dev->type = ARPHRD_PPP; dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST; dev->features |= NETIF_F_NETNS_LOCAL; + dev->priv_flags &= ~IFF_XMIT_DST_RELEASE; } /*