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
@@ -214,8 +214,9 @@ static struct sk_buff *get_new_skb(struct ucc_geth_private *ugeth,
|
||||
|
||||
skb = __skb_dequeue(&ugeth->rx_recycle);
|
||||
if (!skb)
|
||||
skb = dev_alloc_skb(ugeth->ug_info->uf_info.max_rx_buf_length +
|
||||
UCC_GETH_RX_DATA_BUF_ALIGNMENT);
|
||||
skb = netdev_alloc_skb(ugeth->ndev,
|
||||
ugeth->ug_info->uf_info.max_rx_buf_length +
|
||||
UCC_GETH_RX_DATA_BUF_ALIGNMENT);
|
||||
if (skb == NULL)
|
||||
return NULL;
|
||||
|
||||
@@ -227,8 +228,6 @@ static struct sk_buff *get_new_skb(struct ucc_geth_private *ugeth,
|
||||
(((unsigned)skb->data) & (UCC_GETH_RX_DATA_BUF_ALIGNMENT -
|
||||
1)));
|
||||
|
||||
skb->dev = ugeth->ndev;
|
||||
|
||||
out_be32(&((struct qe_bd __iomem *)bd)->buf,
|
||||
dma_map_single(ugeth->dev,
|
||||
skb->data,
|
||||
|
Reference in New Issue
Block a user