|
@@ -975,6 +975,7 @@ static inline void macb_init_rx_ring(struct macb *bp)
|
|
|
addr += bp->rx_buffer_size;
|
|
addr += bp->rx_buffer_size;
|
|
|
}
|
|
}
|
|
|
bp->rx_ring[RX_RING_SIZE - 1].addr |= MACB_BIT(RX_WRAP);
|
|
bp->rx_ring[RX_RING_SIZE - 1].addr |= MACB_BIT(RX_WRAP);
|
|
|
|
|
+ bp->rx_tail = 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static int macb_rx(struct macb *bp, int budget)
|
|
static int macb_rx(struct macb *bp, int budget)
|
|
@@ -1616,8 +1617,6 @@ static void macb_init_rings(struct macb *bp)
|
|
|
bp->queues[0].tx_head = 0;
|
|
bp->queues[0].tx_head = 0;
|
|
|
bp->queues[0].tx_tail = 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;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static void macb_reset_hw(struct macb *bp)
|
|
static void macb_reset_hw(struct macb *bp)
|