freebsd kernel with SKQ
Go to file
yongari 1fd90b0565 Rewrite interrupt handler to give fairness for both RX and TX.
Previously rl(4) continuously checked whether there are RX events
or TX completions in forever loop. This caused TX starvation under
high RX load as well as consuming too much CPU cycles in the
interrupt handler. If interrupt was shared with other devices which
may be always true due to USB devices in these days, rl(4) also
tried to process the interrupt. This means polling(4) was the only
way to mitigate the these issues.

To address these issues, rl(4) now disables interrupts when it
knows the interrupt is ours and limit the number of iteration of
the loop to 16. The interrupt would be enabled again before exiting
interrupt handler if the driver is still running. Because RX buffer
is 64KB in size, the number of iterations in the loop has nothing
to do with number of RX packets being processed. This change
ensures sending TX frames under high RX load.

RX handler drops a driver lock to pass received frames to upper
stack such that there is a window that user can down the interface.
So rl(4) now checks whether driver is still running before serving
RX or TX completion in the loop.

While I'm here, exit interrupt handler when driver initialized
controller.

With this change, now rl(4) can send frames under high RX load even
though the TX performance is still not good(rl(4) controllers can't
queue more than 4 frames at a time so low TX performance was one of
design issue of rl(4) controllers). It's much better than previous
TX starvation and you should not notice RX performance drop with
this change. Controller still shows poor performance under high
network load but for many cases it's now usable without resorting
to polling(4).

MFC after:	2 weeks
2010-10-13 17:55:19 +00:00
bin Make DEBUG traces 64-bit clean: 2010-10-13 13:22:11 +00:00
cddl Properly handle IO with B_FAILFAST 2010-09-27 09:42:31 +00:00
contrib Actually, check for any kind of "C string type". 2010-10-13 17:01:33 +00:00
crypto Remove copyright strings printed at login time via login(1) or sshd(8). 2010-09-28 20:57:14 +00:00
etc No longer install /etc/manpath.config since the BSDL man utilities 2010-10-04 01:07:04 +00:00
games mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
gnu Add definition for FreeBSD 7.4, which will be used in a manual page change. 2010-10-06 18:20:07 +00:00
include Also the stop function should accept 64-bit exception class. 2010-09-30 03:16:35 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib Clang related fixes: 2010-10-13 16:57:06 +00:00
libexec mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
release Replace an obsolete flag -L in an mkisofs(1) command line with 2010-10-03 13:13:10 +00:00
rescue MFtbemd: 2010-08-23 22:24:11 +00:00
sbin Remove stale reference to wtmp(5). 2010-10-11 20:17:23 +00:00
secure Revert changes of 'assure' to 'ensure' made in r211936. 2010-09-11 10:49:56 +00:00
share Use AcpiReset() from ACPICA instead of rolling our own, which is actually 2010-10-13 00:21:53 +00:00
sys Rewrite interrupt handler to give fairness for both RX and TX. 2010-10-13 17:55:19 +00:00
tools Allow one to regression test 'sh' changes without having to install 2010-10-12 18:20:38 +00:00
usr.bin Don't define the input() function ifdef YY_NO_INPUT. 2010-10-13 10:31:32 +00:00
usr.sbin Use the RFC2606 domain example.com in examples. 2010-10-13 09:33:26 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Add a comment to MAINTAINERS indicating that sbin/routed is in fact 2010-04-10 12:29:09 +00:00
Makefile Connect FDT infrastructure to the build system. 2010-06-13 13:02:43 +00:00
Makefile.inc1 Check TARGET_ARCH as well as TARGET to determine if we are doing a cross 2010-09-08 19:53:16 +00:00
Makefile.mips Guard against TARGET_ABI being undefined (TARGET_ABI will go away soon) 2010-08-26 14:54:12 +00:00
ObsoleteFiles.inc Upgrade xz to git snapshot as of 20101010 2010-10-11 21:16:50 +00:00
README Vendor import of xz (stripped) 2010-10-11 12:43:51 +00:00
UPDATING Add a note on the removal of copyright strings from login(1) and sshd(8). 2010-10-07 17:26:22 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html