netdev: ethernet dev_alloc_skb to netdev_alloc_skb
Replaced deprecating dev_alloc_skb with netdev_alloc_skb in drivers/net/ethernet - Removed extra skb->dev = dev after netdev_alloc_skb Signed-off-by: Pradeep A Dalvi <netdev@pradeepdalvi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1d26643054
commit
21a4e46995
@@ -911,7 +911,7 @@ dma_rx(struct net_device *dev)
|
||||
}
|
||||
|
||||
/* Malloc up new buffer. */
|
||||
skb = dev_alloc_skb(length + 2);
|
||||
skb = netdev_alloc_skb(dev, length + 2);
|
||||
if (skb == NULL) {
|
||||
if (net_debug) /* I don't think we want to do this to a stressed system */
|
||||
printk("%s: Memory squeeze, dropping packet.\n", dev->name);
|
||||
@@ -1616,7 +1616,7 @@ net_rx(struct net_device *dev)
|
||||
}
|
||||
|
||||
/* Malloc up new buffer. */
|
||||
skb = dev_alloc_skb(length + 2);
|
||||
skb = netdev_alloc_skb(dev, length + 2);
|
||||
if (skb == NULL) {
|
||||
#if 0 /* Again, this seems a cruel thing to do */
|
||||
printk(KERN_WARNING "%s: Memory squeeze, dropping packet.\n", dev->name);
|
||||
|
Reference in New Issue
Block a user