linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luciano Coelho <luciano.coelho@nokia.com>
To: "ext Luis R. Rodriguez" <lrodriguez@atheros.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] wl1271: use __dev_alloc_skb() on RX
Date: Mon, 02 Nov 2009 10:03:53 +0200	[thread overview]
Message-ID: <4AEE9269.40006@nokia.com> (raw)
In-Reply-To: <1256927746-19352-1-git-send-email-lrodriguez@atheros.com>

Hi Luiz,

ext Luis R. Rodriguez wrote:
> RX is handled in a workqueue therefore allocating for GFP_ATOMIC
> is overkill and not required.


Yes, this looks like the correct thing to do.  Thank you for pointing out! Can 
you send the patch again to Linville for integration?


> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> 
> --- 
> 
> This goes untested and not even compile tested but just thought this was odd.
> 
> diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c
> index 37d81ab..ca645f3 100644
> --- a/drivers/net/wireless/wl12xx/wl1271_rx.c
> +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c
> @@ -159,7 +159,7 @@ static void wl1271_rx_handle_data(struct wl1271 *wl, u32 length)
>  	u8 *buf;
>  	u8 beacon = 0;
>  
> -	skb = dev_alloc_skb(length);
> +	skb = __dev_alloc_skb(length, GFP_KERNEL);
>  	if (!skb) {
>  		wl1271_error("Couldn't allocate RX frame");
>  		return;

Acked-by: Luciano Coelho <luciano.coelho@nokia.com>

-- 
Cheers,
Luca.

  reply	other threads:[~2009-11-02  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-30 18:35 [RFC] wl1271: use __dev_alloc_skb() on RX Luis R. Rodriguez
2009-11-02  8:03 ` Luciano Coelho [this message]
2009-11-02  8:30   ` Luciano Coelho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AEE9269.40006@nokia.com \
    --to=luciano.coelho@nokia.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lrodriguez@atheros.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).