Преглед на файлове

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>
Florian Fainelli преди 11 години
родител
ревизия
b758858c5c
променени са 1 файла, в които са добавени 0 реда и са изтрити 7 реда
  1. 0 7
      drivers/net/ethernet/broadcom/genet/bcmgenet.c

+ 0 - 7
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;