]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sc92031: use netdev_alloc_skb
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 2 Apr 2008 17:13:12 +0000 (10:13 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 00:41:35 +0000 (20:41 -0400)
Use netdev_alloc_skb since it handles any NUMA node memory localtion issues
and sets skb->dev. Since device driver was not setting skb->dev, I bet
filter rules based on device would not work.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sc92031.c

index 841bfa7453016e17c517c41dc16159ab356d2ef5..f64a860029b7910c9a7be2996843120ca6030a01 100644 (file)
@@ -796,7 +796,7 @@ static void _sc92031_rx_tasklet(struct net_device *dev)
 
                rx_len -= rx_size_align + 4;
 
-               skb = dev_alloc_skb(pkt_size + NET_IP_ALIGN);
+               skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN);
                if (unlikely(!skb)) {
                        if (printk_ratelimit())
                                printk(KERN_ERR "%s: Couldn't allocate a skb_buff for a packet of size %u\n",