[PATCH 110/222] net:fec: increase receive ring size

Russell King rmk+kernel at arm.linux.org.uk
Fri Apr 25 04:40:19 PDT 2014


Increasing the receive ring size allows more packets to be received
before we run out of ring entries to store the packets.  With 16
ring entries, this corresponds with a maximum of 16 * 1514 bytes,
or just 23K.  At gigabit speeds, this would take around 200us to
fill.  Increasing this to 64 entries gives us more scope when we
have busy workloads, since it increases us to 95K, and around 700us.

Going above this requires the ring buffer allocation to be changed.

Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
 drivers/net/ethernet/freescale/fec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h
index 62fe1217b781..1650c8440f5f 100644
--- a/drivers/net/ethernet/freescale/fec.h
+++ b/drivers/net/ethernet/freescale/fec.h
@@ -245,7 +245,7 @@ union bufdesc_u {
  * the skbuffer directly.
  */
 
-#define FEC_ENET_RX_PAGES	8
+#define FEC_ENET_RX_PAGES	32
 #define FEC_ENET_RX_FRSIZE	2048
 #define FEC_ENET_RX_FRPPG	(PAGE_SIZE / FEC_ENET_RX_FRSIZE)
 #define RX_RING_SIZE		(FEC_ENET_RX_FRPPG * FEC_ENET_RX_PAGES)
-- 
1.8.3.1




More information about the linux-arm-kernel mailing list