brcmsmac: Reduce number of entries in tx DMA rings
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Nov 2012 14:07:58 +0000 (08:07 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Nov 2012 19:05:08 +0000 (14:05 -0500)
Currently up to 256 frames can be queued for each DMA ring. This is
excessive, and now that we have better flow control we can get by with
less. Experimentation has shown 64 to work well.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Tested-by: Daniel Wagner <wagi@monom.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/main.c

index 5710dc0d93beeaf5a6544d082c8522741ec13390..25c54103ebec853d5923ac1963094675d89d6a36 100644 (file)
 
 #define MAX_DMA_SEGS                   4
 
-/* Max # of entries in Tx FIFO based on 4kb page size */
-#define NTXD                           256
+/* # of entries in Tx FIFO */
+#define NTXD                           64
 /* Max # of entries in Rx FIFO based on 4kb page size */
 #define NRXD                           256