bgmac: increase rx ring size from 511 to 512
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:07:59 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:11 +0000 (14:57 -0400)
Limiting it to 511 looks like a failed attempt at leaving one descriptor
empty to allow the hardware to stop processing a buffer that has not
been prepared yet. However, this doesn't work because this affects the
total ring size as well

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.h

index 3db0d5211c5d492936b7a202246ec49c08a46421..e45e303ebc220b5d07c1d24b2dfcad14bdb5685e 100644 (file)
 #define BGMAC_MAX_RX_RINGS                     1
 
 #define BGMAC_TX_RING_SLOTS                    128
-#define BGMAC_RX_RING_SLOTS                    512 - 1         /* Why -1? Well, Broadcom does that... */
+#define BGMAC_RX_RING_SLOTS                    512
 
 #define BGMAC_RX_HEADER_LEN                    28              /* Last 24 bytes are unused. Well... */
 #define BGMAC_RX_FRAME_OFFSET                  30              /* There are 2 unused bytes between header and real data */