]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[forcedeth] Increase TX ring size to prevent dropped packets
authorMichael Brown <mcb30@ipxe.org>
Mon, 29 Oct 2012 10:14:00 +0000 (10:14 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 29 Oct 2012 10:14:00 +0000 (10:14 +0000)
Commit 947976d ("[netdevice] Do not force a poll on net_tx()")
requires network devices to have TX rings that are sufficiently large
to allow a transmitted response to all packets received during a
single poll.

Reported-by: Robin Smidsrød <robin@smidsrod.no>
Tested-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/forcedeth.h

index 8a095eab2ba0303e57384f40bce47833d375be7c..e1cf6f71af6a99b26ac6a4a507d09f4cd69fac99 100644 (file)
@@ -55,7 +55,7 @@ struct ring_desc_ex {
 #define DESC_VER_3     3
 
 #define RX_RING_SIZE           16
-#define TX_RING_SIZE           16
+#define TX_RING_SIZE           32
 #define RXTX_RING_SIZE         ( ( RX_RING_SIZE ) + ( TX_RING_SIZE ) )
 #define RX_RING_MIN            128
 #define TX_RING_MIN            64