Re: [ath5k-devel] [PATCH] ath5k: consistently use rx_bufsize for RX DMA

2010-05-14 Thread Luis R. Rodriguez
On Fri, May 14, 2010 at 03:05:22PM -0700, Bruno Randolf wrote: > On Saturday 15 May 2010 01:04:34 Luis R. Rodriguez wrote: > > On Fri, May 14, 2010 at 12:50 AM, Bruno Randolf wrote: > > > We should use the same buffer size we set up for DMA also in the hardware > > > descriptor. Previously we used

Re: [ath5k-devel] [PATCH] ath5k: consistently use rx_bufsize for RX DMA

2010-05-14 Thread Bruno Randolf
On Saturday 15 May 2010 01:04:34 Luis R. Rodriguez wrote: > On Fri, May 14, 2010 at 12:50 AM, Bruno Randolf wrote: > > We should use the same buffer size we set up for DMA also in the hardware > > descriptor. Previously we used common->rx_bufsize for setting up the DMA > > mapping, but skb_tailroo

Re: [ath5k-devel] [PATCH] ath5k: consistently use rx_bufsize for RX DMA

2010-05-14 Thread Luis R. Rodriguez
On Fri, May 14, 2010 at 12:50 AM, Bruno Randolf wrote: > We should use the same buffer size we set up for DMA also in the hardware > descriptor. Previously we used common->rx_bufsize for setting up the DMA > mapping, but skb_tailroom(skb) for the size we tell to the hardware in the > descriptor it

[ath5k-devel] [PATCH] ath5k: consistently use rx_bufsize for RX DMA

2010-05-14 Thread Bruno Randolf
We should use the same buffer size we set up for DMA also in the hardware descriptor. Previously we used common->rx_bufsize for setting up the DMA mapping, but skb_tailroom(skb) for the size we tell to the hardware in the descriptor itself. The problem is that skb_tailroom(skb) can give us a larger