mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petko Manolov <petkan@nucleusys.com>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: David Miller <davem@davemloft.net>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/5] drivers: net: usb: rtl8150: bug fixing and cleanup
Date: Sun, 19 May 2013 11:48:13 +0300 (EEST)	[thread overview]
Message-ID: <alpine.DEB.2.02.1305191146130.4537@fry.nucleusys.com> (raw)
In-Reply-To: <20130518210958.GB26590@electric-eye.fr.zoreil.com>

On Sat, 18 May 2013, Francois Romieu wrote:

> Petko Manolov <petkan@nucleusys.com> :
> [...]
> > diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
> > index 7d1897b..fd4bc2a 100644
> > --- a/drivers/net/usb/rtl8150.c
> > +++ b/drivers/net/usb/rtl8150.c
> [...]
> >  static void rx_fixup(unsigned long data)
> >  {
> >  	struct rtl8150 *dev = (struct rtl8150 *)data;
> >  	struct sk_buff *skb;
> >  	int status;
> >  
> > -	spin_lock_irq(&dev->rx_pool_lock);
> > -	fill_skb_pool(dev);
> > -	spin_unlock_irq(&dev->rx_pool_lock);
> >  	if (test_bit(RX_URB_FAIL, &dev->flags))
> >  		if (dev->rx_skb)
> >  			goto try_again;
> > -	spin_lock_irq(&dev->rx_pool_lock);
> > -	skb = pull_skb(dev);
> > -	spin_unlock_irq(&dev->rx_pool_lock);
> > +	skb = __netdev_alloc_skb_ip_align(dev->netdev, RTL8150_MTU, GFP_ATOMIC);
> 
> You can use plain netdev_alloc_skb_ip_align.

Yep, except for the call in rtl8150_open() (where GFP_KERNEL is more 
appropriate) i should have used the plain version.

      reply	other threads:[~2013-05-19  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-18 16:24 Petko Manolov
2013-05-18 21:09 ` Francois Romieu
2013-05-19  8:48   ` Petko Manolov [this message]

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=alpine.DEB.2.02.1305191146130.4537@fry.nucleusys.com \
    --to=petkan@nucleusys.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=romieu@fr.zoreil.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

all inboxes | Powered by JetHome®