diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-03-21 18:03:25 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-10-17 14:35:02 +0100 |
commit | 87589a020fd976e17cf3d03b5c6edff64c0860f9 (patch) | |
tree | 4b117d937f59193d4998cf4dcff7f6316334d226 | |
parent | ce257edf6137957234ac28d0c47765bab5fa5bb0 (diff) |
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 <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | drivers/net/ethernet/freescale/fec.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |