|
@@ -1218,7 +1218,7 @@ static unsigned int __bcmgenet_tx_reclaim(struct net_device *dev,
|
|
}
|
|
}
|
|
|
|
|
|
ring->free_bds += txbds_processed;
|
|
ring->free_bds += txbds_processed;
|
|
- ring->c_index = (ring->c_index + txbds_processed) & DMA_C_INDEX_MASK;
|
|
|
|
|
|
+ ring->c_index = c_index;
|
|
|
|
|
|
dev->stats.tx_packets += pkts_compl;
|
|
dev->stats.tx_packets += pkts_compl;
|
|
dev->stats.tx_bytes += bytes_compl;
|
|
dev->stats.tx_bytes += bytes_compl;
|
|
@@ -1231,7 +1231,7 @@ static unsigned int __bcmgenet_tx_reclaim(struct net_device *dev,
|
|
netif_tx_wake_queue(txq);
|
|
netif_tx_wake_queue(txq);
|
|
}
|
|
}
|
|
|
|
|
|
- return pkts_compl;
|
|
|
|
|
|
+ return txbds_processed;
|
|
}
|
|
}
|
|
|
|
|
|
static unsigned int bcmgenet_tx_reclaim(struct net_device *dev,
|
|
static unsigned int bcmgenet_tx_reclaim(struct net_device *dev,
|