public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum•org>
To: David Miller <davem@davemloft•net>
Cc: shemminger@vyatta•com, stern@rowland•harvard.edu,
	tom.leiming@gmail•com, netdev@vger•kernel.org,
	linux-usb@vger•kernel.org
Subject: Re: future developments of usbnet
Date: Thu, 12 May 2011 09:59:28 +0200	[thread overview]
Message-ID: <201105120959.28473.oliver@neukum.org> (raw)
In-Reply-To: <20110511.134727.957370621658043260.davem@davemloft.net>

Am Mittwoch, 11. Mai 2011, 19:47:27 schrieb David Miller:

> Basically once you take you interrupt, and disable device interrupts,
> the generic net device layer calls your ->poll() routing with a "weight"
> You should not process more RX packets than this value.
> 
> If you have less than "weight" work to do, you should do a napi_complete(),
> which takes you out of the polling group, and re-enable device interrupts.
> 
> So the idea is that you keep getting ->poll()'d until there is no more
> RX work to do.
> 
> The "weight" argument implements fairness amongst competing, actively
> polling, devices on the same CPU.
> 

Thank you, this is very informative. Our problem here is that USB doesn't work
sanely without interrupts. We can stop IO regarding rx, but we cannot stop
interrupts if we want to do rx.

	Regards
		Oliver

  reply	other threads:[~2011-05-12  7:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-06 18:45 future developments of usbnet Oliver Neukum
     [not found] ` <201105062045.37336.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2011-05-09  3:26   ` Ming Lei
2011-05-09  8:42     ` Oliver Neukum
     [not found]       ` <201105091042.01014.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2011-05-09 15:22         ` Ming Lei
2011-05-09 15:31           ` Alan Stern
2011-05-09 15:46             ` Stephen Hemminger
2011-05-11 17:37               ` Oliver Neukum
     [not found]                 ` <201105111937.47448.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2011-05-11 17:47                   ` David Miller
2011-05-12  7:59                     ` Oliver Neukum [this message]
     [not found]                       ` <201105120959.28473.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2011-05-12 14:37                         ` Alan Stern
2011-05-14 10:01                           ` Oliver Neukum
     [not found]                             ` <201105141201.40265.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2011-05-14 10:46                               ` Michał Mirosław
2011-05-12 17:46                         ` David Miller
2011-05-10  9:42   ` Richard Cochran

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=201105120959.28473.oliver@neukum.org \
    --to=oliver@neukum$(echo .)org \
    --cc=davem@davemloft$(echo .)net \
    --cc=linux-usb@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=shemminger@vyatta$(echo .)com \
    --cc=stern@rowland$(echo .)harvard.edu \
    --cc=tom.leiming@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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