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
@@ -3598,7 +3598,7 @@ de4x5_alloc_rx_buff(struct net_device *dev, int index, int len)
|
||||
struct sk_buff *ret;
|
||||
u_long i=0, tmp;
|
||||
|
||||
p = dev_alloc_skb(IEEE802_3_SZ + DE4X5_ALIGN + 2);
|
||||
p = netdev_alloc_skb(dev, IEEE802_3_SZ + DE4X5_ALIGN + 2);
|
||||
if (!p) return NULL;
|
||||
|
||||
tmp = virt_to_bus(p->data);
|
||||
@@ -3618,7 +3618,7 @@ de4x5_alloc_rx_buff(struct net_device *dev, int index, int len)
|
||||
#else
|
||||
if (lp->state != OPEN) return (struct sk_buff *)1; /* Fake out the open */
|
||||
|
||||
p = dev_alloc_skb(len + 2);
|
||||
p = netdev_alloc_skb(dev, len + 2);
|
||||
if (!p) return NULL;
|
||||
|
||||
skb_reserve(p, 2); /* Align */
|
||||
|
Reference in New Issue
Block a user