|
@@ -1473,9 +1473,9 @@ static void macb_init_rings(struct macb *bp)
|
|
for (i = 0; i < TX_RING_SIZE; i++) {
|
|
for (i = 0; i < TX_RING_SIZE; i++) {
|
|
bp->queues[0].tx_ring[i].addr = 0;
|
|
bp->queues[0].tx_ring[i].addr = 0;
|
|
bp->queues[0].tx_ring[i].ctrl = MACB_BIT(TX_USED);
|
|
bp->queues[0].tx_ring[i].ctrl = MACB_BIT(TX_USED);
|
|
- bp->queues[0].tx_head = 0;
|
|
|
|
- bp->queues[0].tx_tail = 0;
|
|
|
|
}
|
|
}
|
|
|
|
+ bp->queues[0].tx_head = 0;
|
|
|
|
+ bp->queues[0].tx_tail = 0;
|
|
bp->queues[0].tx_ring[TX_RING_SIZE - 1].ctrl |= MACB_BIT(TX_WRAP);
|
|
bp->queues[0].tx_ring[TX_RING_SIZE - 1].ctrl |= MACB_BIT(TX_WRAP);
|
|
|
|
|
|
bp->rx_tail = 0;
|
|
bp->rx_tail = 0;
|