diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2014-12-09 22:41:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-10 13:31:58 -0500 |
commit | 45abfb1069e4c365f6c1e2fc97c5927272725bfa (patch) | |
tree | e69f89b43fa65a1f4279bc6aa7dc068c0817c208 /drivers/net/ethernet | |
parent | e2338f86b334558b9f38a20a06fc645d90d6da2d (diff) |
ethernet/broadcom: Use napi_alloc_skb instead of netdev_alloc_skb_ip_align
This patch replaces the calls to netdev_alloc_skb_ip_align in the
copybreak paths.
Cc: Gary Zambrano <zambrano@broadcom.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ariel Elior <ariel.elior@qlogic.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/broadcom/b44.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.c index ffeaf476a120..d86d6baf9681 100644 --- a/drivers/net/ethernet/broadcom/b44.c +++ b/drivers/net/ethernet/broadcom/b44.c | |||
@@ -836,7 +836,7 @@ static int b44_rx(struct b44 *bp, int budget) | |||
836 | struct sk_buff *copy_skb; | 836 | struct sk_buff *copy_skb; |
837 | 837 | ||
838 | b44_recycle_rx(bp, cons, bp->rx_prod); | 838 | b44_recycle_rx(bp, cons, bp->rx_prod); |
839 | copy_skb = netdev_alloc_skb_ip_align(bp->dev, len); | 839 | copy_skb = napi_alloc_skb(&bp->napi, len); |
840 | if (copy_skb == NULL) | 840 | if (copy_skb == NULL) |
841 | goto drop_it_no_recycle; | 841 | goto drop_it_no_recycle; |
842 | 842 | ||
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c index 3e8d1a88ed3d..21206d33b638 100644 --- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c +++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c | |||
@@ -385,7 +385,7 @@ static int bcm_enet_receive_queue(struct net_device *dev, int budget) | |||
385 | if (len < copybreak) { | 385 | if (len < copybreak) { |
386 | struct sk_buff *nskb; | 386 | struct sk_buff *nskb; |
387 | 387 | ||
388 | nskb = netdev_alloc_skb_ip_align(dev, len); | 388 | nskb = napi_alloc_skb(&priv->napi, len); |
389 | if (!nskb) { | 389 | if (!nskb) { |
390 | /* forget packet, just rearm desc */ | 390 | /* forget packet, just rearm desc */ |
391 | dev->stats.rx_dropped++; | 391 | dev->stats.rx_dropped++; |
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index b4d71fd909ee..1d1147c93d59 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | |||
@@ -1015,7 +1015,7 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) | |||
1015 | */ | 1015 | */ |
1016 | if ((bp->dev->mtu > ETH_MAX_PACKET_SIZE) && | 1016 | if ((bp->dev->mtu > ETH_MAX_PACKET_SIZE) && |
1017 | (len <= RX_COPY_THRESH)) { | 1017 | (len <= RX_COPY_THRESH)) { |
1018 | skb = netdev_alloc_skb_ip_align(bp->dev, len); | 1018 | skb = napi_alloc_skb(&fp->napi, len); |
1019 | if (skb == NULL) { | 1019 | if (skb == NULL) { |
1020 | DP(NETIF_MSG_RX_ERR | NETIF_MSG_RX_STATUS, | 1020 | DP(NETIF_MSG_RX_ERR | NETIF_MSG_RX_STATUS, |
1021 | "ERROR packet dropped because of alloc failure\n"); | 1021 | "ERROR packet dropped because of alloc failure\n"); |