1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/sys
Bill Paul 51b875b355 Fix some stability problems:
- 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.
1999-01-16 06:19:38 +00:00
..
alpha Oops, add the NMBCLUSTERS initialiser for the Alpha as well. 1999-01-15 18:00:19 +00:00
amd64 Fetch an overide for NMBCLUSTERS from the kernel environment. Never allow 1999-01-15 17:24:05 +00:00
boot Replace duplicated "old" linker set definitions with an include of 1999-01-16 03:25:24 +00:00
cam More bandaids. One important one from Sascha Blank 1999-01-16 04:02:31 +00:00
coda Don't pass unused unused timestamp args to UFS_UPDATE() or waste 1999-01-07 16:14:19 +00:00
compat Fix linux sendmsg() emulation 1999-01-11 05:28:44 +00:00
compile
conf Use a fast interrupt handler for the PCI version of the cy driver 1999-01-15 10:00:12 +00:00
contrib/softupdates Don't pass unused unused timestamp args to UFS_UPDATE() or waste 1999-01-07 16:14:19 +00:00
ddb Replace includes of <sys/kernel.h> with includes of 1999-01-14 06:22:10 +00:00
dev Add two missing break statements. 1999-01-15 23:24:23 +00:00
fs Remove declarations for undefined functions and a couple of unused 1999-01-12 11:49:30 +00:00
geom
gnu Avoid warning for unused variable. 1999-01-11 23:32:35 +00:00
i4b Silence warnings. 1999-01-12 11:05:03 +00:00
i386 Don't let bugs in ide_pci.c break wdprobe(), at least for standard 1999-01-16 01:06:23 +00:00
isa Fixed corruption of the fd buffer queue. Once upon a time, the active 1999-01-15 09:15:27 +00:00
isofs/cd9660
kern Add getenv_int(), specifically for retrieving integer values from kernel 1999-01-15 17:25:02 +00:00
libkern
miscfs Remove declarations for undefined functions and a couple of unused 1999-01-12 11:49:30 +00:00
modules Calculate the number of bitmap colors in the correct way. 1999-01-13 09:59:30 +00:00
msdosfs
net Remove unused variable & clean up a couple of style issues. 1999-01-12 12:07:00 +00:00
netatalk De-staticize and add prototype for main debug function. I'll turn 1999-01-12 12:09:27 +00:00
netatm
netinet ... _and_ the (void*) casts for %p. Next, I'll forget my own name :-( 1999-01-12 16:43:52 +00:00
netipx Remove functions that are no longer in use. 1999-01-12 12:37:18 +00:00
netkey #ifdef out unused function key_freetables. 1999-01-12 12:38:31 +00:00
netnatm
netns
nfs Remove two cases of unused variable sp3. 1999-01-12 12:39:14 +00:00
nfsclient Remove two cases of unused variable sp3. 1999-01-12 12:39:14 +00:00
nfsserver Remove the 'waslocked' parameter to vfs_object_create(). 1999-01-05 18:50:03 +00:00
pc98 Add a prototype to silence warnings. 1999-01-12 01:28:00 +00:00
pccard
pci Fix some stability problems: 1999-01-16 06:19:38 +00:00
posix4
powerpc
rpc
sys Add getenv_int(), specifically for retrieving integer values from kernel 1999-01-15 17:25:02 +00:00
tools
ufs Silence warning about unused debug function. (I'll turn this function 1999-01-12 11:42:41 +00:00
vm KNFize, by bde. 1999-01-10 01:58:29 +00:00
Makefile