From: Seth Forshee Date: Thu, 15 Nov 2012 14:07:58 +0000 (-0600) Subject: brcmsmac: Reduce number of entries in tx DMA rings X-Git-Tag: v3.8-rc1~139^2~17^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75be3e24eeedbc9ec5faf3483fe9b449abec94e8;p=platform%2Fkernel%2Flinux-3.10.git brcmsmac: Reduce number of entries in tx DMA rings 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 Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Arend van Spriel Tested-by: Daniel Wagner Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 5710dc0..25c5410 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c @@ -232,8 +232,8 @@ #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