atm: unset IFF_XMIT_DST_RELEASE in clip_setup()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 May 2009 11:14:49 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2009 08:46:28 +0000 (01:46 -0700)
clip_start_xmit() needs 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>
net/atm/clip.c

index 5597b87b9e64d29898854a6d37a84c116f5c76cd..fb7623c080f8ac58c2acf503e618b3ad26eb6d73 100644 (file)
@@ -557,6 +557,7 @@ static void clip_setup(struct net_device *dev)
        /* without any more elaborate queuing. 100 is a reasonable */
        /* compromise between decent burst-tolerance and protection */
        /* against memory hogs. */
+       dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;
 }
 
 static int clip_create(int number)