From 87589a020fd976e17cf3d03b5c6edff64c0860f9 Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 21 Mar 2014 18:03:25 +0000 Subject: net: fec: increase receive ring size 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 * 1534 bytes, or just 24KiB. At gigabit speeds, this would take around 200us to fill. Increasing this to 512 entries gives us more scope when we have busy workloads, as it increases the ring to 767K, and around 6.3ms. Signed-off-by: Russell King --- 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 6f652ec2a037..702fdae3d4f0 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -241,7 +241,7 @@ struct bufdesc_ex { * the skbuffer directly. */ -#define FEC_ENET_RX_PAGES 8 +#define FEC_ENET_RX_PAGES 256 #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) -- cgit