diff options
author | Pradeep A Dalvi <netdev@pradeepdalvi.com> | 2012-02-04 21:50:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-06 11:52:27 -0500 |
commit | c056b734e54e12f38f34a2583a4824e6cecc16c1 (patch) | |
tree | 78e501091b9f99477e9b919c03fd5b1930a46198 /drivers/net/ethernet/mellanox | |
parent | 21a4e46995fa1a76281ac0281ff837f706231a37 (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_rx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index f61d0e08f52b..fb6e899f38d3 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c | |||
@@ -463,12 +463,11 @@ static struct sk_buff *mlx4_en_rx_skb(struct mlx4_en_priv *priv, | |||
463 | int used_frags; | 463 | int used_frags; |
464 | dma_addr_t dma; | 464 | dma_addr_t dma; |
465 | 465 | ||
466 | skb = dev_alloc_skb(SMALL_PACKET_SIZE + NET_IP_ALIGN); | 466 | skb = netdev_alloc_skb(priv->dev, SMALL_PACKET_SIZE + NET_IP_ALIGN); |
467 | if (!skb) { | 467 | if (!skb) { |
468 | en_dbg(RX_ERR, priv, "Failed allocating skb\n"); | 468 | en_dbg(RX_ERR, priv, "Failed allocating skb\n"); |
469 | return NULL; | 469 | return NULL; |
470 | } | 470 | } |
471 | skb->dev = priv->dev; | ||
472 | skb_reserve(skb, NET_IP_ALIGN); | 471 | skb_reserve(skb, NET_IP_ALIGN); |
473 | skb->len = length; | 472 | skb->len = length; |
474 | 473 | ||