linux_old1/Documentation/DocBook
Stephen Hemminger bea3348eef [NET]: Make NAPI polling independent of struct net_device objects.
Several devices have multiple independant RX queues per net
device, and some have a single interrupt doorbell for several
queues.

In either case, it's easier to support layouts like that if the
structure representing the poll is independant from the net
device itself.

The signature of the ->poll() call back goes from:

	int foo_poll(struct net_device *dev, int *budget)

to

	int foo_poll(struct napi_struct *napi, int budget)

The caller is returned the number of RX packets processed (or
the number of "NAPI credits" consumed if you want to get
abstract).  The callee no longer messes around bumping
dev->quota, *budget, etc. because that is all handled in the
caller upon return.

The napi_struct is to be embedded in the device driver private data
structures.

Furthermore, it is the driver's responsibility to disable all NAPI
instances in it's ->stop() device close handler.  Since the
napi_struct is privatized into the driver's private data structures,
only the driver knows how to get at all of the napi_struct instances
it may have per-device.

With lots of help and suggestions from Rusty Russell, Roland Dreier,
Michael Chan, Jeff Garzik, and Jamal Hadi Salim.

Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.

[ Ported to current tree and all drivers converted.  Integrated
  Stephen's follow-on kerneldoc additions, and restored poll_list
  handling to the old style to fix mutual exclusion issues.  -DaveM ]

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:47:45 -07:00
..
.gitignore [PATCH] DocBook: add .gitignore file 2006-01-10 08:01:52 -08:00
Makefile kernel-doc: add tools doc in Makefile 2007-07-19 10:04:45 -07:00
deviceiobook.tmpl PCI: Document pci_iomap() 2007-08-22 14:48:40 -07:00
filesystems.tmpl [PATCH] docbook: merge journal-api into filesystems.tmpl 2006-11-03 12:27:56 -08:00
gadget.tmpl USB: remove usb DocBook warnings 2007-05-22 23:45:48 -07:00
genericirq.tmpl [DocBook]: Fix two typos in generic IRQ docs. 2006-12-17 14:06:57 -08:00
kernel-api.tmpl [NET]: Make NAPI polling independent of struct net_device objects. 2007-10-10 16:47:45 -07:00
kernel-hacking.tmpl [PATCH] fixup Documentation/DocBook/kernel-hacking.tmpl 2005-09-21 10:11:55 -07:00
kernel-locking.tmpl DocBook: Change a headline in kernel-locking to list all three main types of locking. 2007-07-22 11:49:53 -07:00
libata.tmpl [SCSI] libsas: fix scr_read/write users and update the libata documentation 2007-07-20 15:52:08 -05:00
librs.tmpl docbook: librs typo fixes 2007-05-08 11:15:15 -07:00
lsm.tmpl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcabook.tmpl [kernel-doc] fix various DocBook build problems/warnings 2005-09-07 01:15:17 -04:00
mtdnand.tmpl Merge git://git.infradead.org/mtd-2.6 2006-07-03 21:29:08 -07:00
procfs-guide.tmpl update procfs-guide doc of read_func 2007-07-16 09:05:48 -07:00
procfs_example.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rapidio.tmpl [PATCH] RapidIO support: core base 2005-11-07 07:53:46 -08:00
stylesheet.xsl [PATCH] DocBook/HTML: Generate chapter/section level TOCs for functions 2007-02-11 10:51:30 -08:00
uio-howto.tmpl remove dubious legal statment from uio-howto 2007-08-09 08:40:21 -07:00
usb.tmpl USB: remove usb DocBook warnings 2007-05-22 23:45:48 -07:00
videobook.tmpl [PATCH] irq-flags: documentation: Use the new IRQF_ constants 2006-07-02 13:58:55 -07:00
wanbook.tmpl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
writing_usb_driver.tmpl usb: writing_usb_driver free urb cleanup 2006-12-01 14:23:31 -08:00
z8530book.tmpl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00