From: David Brownell <david-b@pacbell.net>
To: Alexey Orishko <alexey.orishko@gmail.com>
Cc: gregkh@suse.de, linux-usb@vger.kernel.org,
netdev@vger.kernel.org, oliver@neukum.org,
yauheni.kaliuta@nokia.com, felipe.balbi@nokia.com,
sjur.brandeland@stericsson.com,
Alexey Orishko <alexey.orishko@stericsson.com>
Subject: Re: [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver
Date: Tue, 23 Nov 2010 10:58:40 -0800 [thread overview]
Message-ID: <1290538720.2529.109.camel@helium> (raw)
In-Reply-To: <1290531088-2393-1-git-send-email-alexey.orishko@stericsson.com>
On Tue, 2010-11-23 at 17:51 +0100, Alexey Orishko wrote:
> - skb_queue_tail (&dev->done, skb);
> + if (skb->len) {
> + /* all data was already cloned inside NCM driver */
Fix this comment. NCM isn't the only framing policy which un-batches
RX packets ... RNDIS has done so for a number of years already, and
more recently EEM needs it too ... plus at least one hardware driver.
Also, check pending patches, since I seem to recall one that supports
some hardware (SMSC?) that batches, and needed to update the calling
convention you're using here (i.e. the original one).
> + if (dev->driver_info->flags & FLAG_MULTI_PACKET)
except ... you documented this flag as affecting TX paths not RX...
> + dev_kfree_skb_any(skb);
> + else
> + usbnet_skb_return(dev, skb);
> + return;
> }
> +
> + netif_dbg(dev, rx_err, dev->net, "drop\n");
> +error:
> + dev->net->stats.rx_errors++;
> + skb_queue_tail(&dev->done, skb);
> }
>
next prev parent reply other threads:[~2010-11-23 18:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 16:51 [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver Alexey Orishko
2010-11-23 16:51 ` [PATCH 2/2] USB CDC NCM host driver Alexey Orishko
[not found] ` <1290531088-2393-1-git-send-email-alexey.orishko-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2010-11-23 17:39 ` [PATCH 1/2] usbnet: changes for upcoming cdc_ncm driver Viral Mehta
[not found] ` <D69C90565D53114396BF743585AF5A09122E61E8A3-fVvhrSDAkVjuuPCCJ6VnObSn4PsL5ZDKvpI+GvaZM4lBDgjK7y7TUQ@public.gmane.org>
2010-11-24 13:53 ` Alexey ORISHKO
2010-11-23 18:58 ` David Brownell [this message]
2010-11-24 15:14 ` Alexey ORISHKO
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=1290538720.2529.109.camel@helium \
--to=david-b@pacbell.net \
--cc=alexey.orishko@gmail.com \
--cc=alexey.orishko@stericsson.com \
--cc=felipe.balbi@nokia.com \
--cc=gregkh@suse.de \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oliver@neukum.org \
--cc=sjur.brandeland@stericsson.com \
--cc=yauheni.kaliuta@nokia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.