Search Linux Wireless

Re: [PATCHv2 9/9] mwifiex: delay skb allocation for RX until cmd53 over

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 13, 2015 at 05:37:59PM +0530, Avinash Patil wrote:
> From: Zhaoyang Liu <liuzy@xxxxxxxxxxx>
> 
> This patch moves SKB allocation for RX packets from current
> place i.e. after reading MP regs to place where we already
> have read data from SDIO bus ie after cmd53.
> 
> mp_rx_aggr_setup has been modified accordingly to set
> skb_arr to NULL.
> 
> Signed-off-by: Zhaoyang Liu <liuzy@xxxxxxxxxxx>
> Signed-off-by: Shengzhen Li <szli@xxxxxxxxxxx>
> Reviewed-by: Amitkumar Karwar <akarwar@xxxxxxxxxxx>
> Reviewed-by: Cathy Luo <cluo@xxxxxxxxxxx>
> Reviewed-by: Avinash Patil <patila@xxxxxxxxxxx>
> ---
>  drivers/net/wireless/mwifiex/sdio.c | 59 ++++++++++++++++++-------------------
>  drivers/net/wireless/mwifiex/sdio.h |  8 ++---
>  2 files changed, 33 insertions(+), 34 deletions(-)
> 
> diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c
> index fdeeb67..330e9d0 100644
> --- a/drivers/net/wireless/mwifiex/sdio.c
> +++ b/drivers/net/wireless/mwifiex/sdio.c

[snip]

> @@ -1538,24 +1550,11 @@ static int mwifiex_process_int_status(struct mwifiex_adapter *adapter)
>  					rx_len);
>  				return -1;
>  			}
> -			rx_len = (u16) (rx_blocks * MWIFIEX_SDIO_BLOCK_SIZE);
>  
> -			skb = mwifiex_alloc_dma_align_buf(rx_len,
> -							  GFP_KERNEL |
> -							  GFP_DMA);
> -
> -			if (!skb) {
> -				dev_err(adapter->dev, "%s: failed to alloc skb",
> -					__func__);
> -				return -1;
> -			}

I like it.

Because I continue to have problems with dev_alloc_skb failing, and
the "return -1;" that you are removing doesn't seem to leave the card
and driver in a useful state.

Your patch is hopefully an improvement.

Have you done any testing of response after skb allocation failure
before and after your patch?

-- 
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux