- Normally, the driver allocates an mbuf cluster for each receive descriptor. This is because we have to be prepared to accomodate up to 1500 bytes (a cluster buffer can hold up to 2K). However, using up a whole cluster buffer for a tiny packet is a bit of a waste. Also, it seems to me that sometimes mbufs will linger in the kernel for a while after being passed out of the driver, which means we might drain the mbuf cluster pool. The cluster pool is smaller than the mbuf pool in general, so we do the following: if the packet is less that MINCLSIZE bytes, then we copy it into a small mbuf chain and leave the mbuf cluster in place for another go-round. This saves mbuf clusters in some cases while still allowing them to be used for heavy traffic exchanges with lots of full-sized frames. - The transmit descriptor has a bit in the control word which allows the driver to request that a 'TX OK' interrupt be generated when a frame has been completed. Sometimes, a frame can be fragmented across several descriptors. The manual for the real DEC 21140A says that if this happens, the 'TX interrupt request' bit is only valid in the descriptor of the last fragment. With the ASIX chip, it seems the 'TX interrupt request' bit is only valid in the descriptor of the _first_ fragment. Actually, the manual contains conflicting information, but I think it's supposed to be the first fragment. To play it safe, set the bit in both the first and last fragment to be sure that we get a TX OK interrupt. Without this fix, the driver can sometimes be late in releasing mbufs from the transmit queue after transmission.
This is the top level of the FreeBSD source directory. This file was last revised on: $Id: README,v 1.13 1998/09/13 09:38:34 markm Exp $ 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 and the contents of /etc. 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 with config(8) is a somewhat more involved process, documentation for which can be found at: http://www.freebsd.org/handbook/kernelconfig.html And in the config(8) man page. The sample kernel configuration files reside in the sys/i386/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 LINT contains entries for all possible devices, not just those commonly used, and is meant more as a general reference than an actual kernel configuration file (a kernel built from it wouldn't even run). Source Roadmap: --------------- bin System/User commands. contrib Packages contributed by 3rd parties. crypto Export controlled 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. kerberosIV Kerberos package. lib System libraries. libexec System daemons. release Release building Makefile & associated tools. sbin System commands. secure DES and DES-related utilities - NOT FOR EXPORT! 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/handbook/synching.html
Description
Languages
C
63.3%
C++
23.3%
Roff
5.1%
Shell
2.9%
Makefile
1.5%
Other
3.4%