Эх сурвалжийг харах

net: mvneta: increase number of buffers in RX and TX queue

The initial values were too small leading to poor performance when using
the software buffer management.

Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
[gregory: extract from a larger patch]
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Yelena Krivosheev 7 жил өмнө
parent
commit
c307e2a895

+ 2 - 2
drivers/net/ethernet/marvell/mvneta.c

@@ -295,10 +295,10 @@
 #define MVNETA_RSS_LU_TABLE_SIZE	1
 #define MVNETA_RSS_LU_TABLE_SIZE	1
 
 
 /* Max number of Rx descriptors */
 /* Max number of Rx descriptors */
-#define MVNETA_MAX_RXD 128
+#define MVNETA_MAX_RXD 512
 
 
 /* Max number of Tx descriptors */
 /* Max number of Tx descriptors */
-#define MVNETA_MAX_TXD 532
+#define MVNETA_MAX_TXD 1024
 
 
 /* Max number of allowed TCP segments for software TSO */
 /* Max number of allowed TCP segments for software TSO */
 #define MVNETA_MAX_TSO_SEGS 100
 #define MVNETA_MAX_TSO_SEGS 100