summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/genet
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-06-26 10:26:22 -0700
committerDavid S. Miller <davem@davemloft.net>2014-07-01 17:25:03 -0700
commitb758858c5ceb1b30ae7d04dea6c74821bd7c7d69 (patch)
tree8e8f166f5f57fc9e815269a2e6c50fc9213af823 /drivers/net/ethernet/broadcom/genet
parent219575eb6311ad090e26c675a6e217f5d48780a3 (diff)
downloadop-kernel-dev-b758858c5ceb1b30ae7d04dea6c74821bd7c7d69.zip
op-kernel-dev-b758858c5ceb1b30ae7d04dea6c74821bd7c7d69.tar.gz
net: bcmgenet: do not set packet length for RX buffers
Hardware will provide this information as soon as we will start processing incoming packets, so there is no need to set the RX buffer length during buffer allocation. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet')
-rw-r--r--drivers/net/ethernet/broadcom/genet/bcmgenet.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index e51e462..16281ad 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -1408,13 +1408,6 @@ static int bcmgenet_alloc_rx_buffers(struct bcmgenet_priv *priv)
if (cb->skb)
continue;
- /* set the DMA descriptor length once and for all
- * it will only change if we support dynamically sizing
- * priv->rx_buf_len, but we do not
- */
- dmadesc_set_length_status(priv, priv->rx_bd_assign_ptr,
- priv->rx_buf_len << DMA_BUFLENGTH_SHIFT);
-
ret = bcmgenet_rx_refill(priv, cb);
if (ret)
break;
OpenPOWER on IntegriCloud