Переглянути джерело

[e1000] Request notification of TX completions

The RS bit is used to instruct the NIC to update the TX descriptor
status byte.  The RPS bit is used to instruct the NIC to defer this
update until after the packet has been transmitted on the wire (rather
than merely read into the transmit FIFO).

The driver currently sets RPS but not RS.  Some e1000 models seem to
interpret this as implying that the status byte should be updated;
some don't.  On the ones that don't, we never see any TX completions
and so rapidly run out of TX buffers.

Fix by setting the RS bit in the TX descriptor.  (We don't care about
when the packet reaches the wire, so don't bother setting the RPS
bit.)

Reported-by: Miroslav Halas <miroslav.halas@bankofamerica.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 роки тому
джерело
коміт
d5e273e5c2
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      src/drivers/net/e1000/e1000_main.c

+ 1
- 1
src/drivers/net/e1000/e1000_main.c Переглянути файл

@@ -611,7 +611,7 @@ static int e1000_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
611 611
 	tx_curr_desc->buffer_addr =
612 612
 		virt_to_bus ( iobuf->data );
613 613
 	tx_curr_desc->lower.data =
614
-		E1000_TXD_CMD_RPS  | E1000_TXD_CMD_EOP |
614
+		E1000_TXD_CMD_RS | E1000_TXD_CMD_EOP |
615 615
 		E1000_TXD_CMD_IFCS | iob_len ( iobuf );
616 616
 	tx_curr_desc->upper.data = 0;
617 617
 

Завантаження…
Відмінити
Зберегти