diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-01-16 06:25:59 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-01-16 06:25:59 +0000 |
commit | 9ca21c103197c930e8d45431ad25a0582a498a11 (patch) | |
tree | 582689690bee293209a0b1d7f06fd3dd201a82d9 /sys/pci/if_wbreg.h | |
parent | 96171289530a831b5246275f4e0af3f292ce66d3 (diff) | |
download | FreeBSD-src-9ca21c103197c930e8d45431ad25a0582a498a11.zip FreeBSD-src-9ca21c103197c930e8d45431ad25a0582a498a11.tar.gz |
Stability fixes:
- In wb_rxeof(), if the received packet is less than MINCLSIZE bytes,
copy it to an mbuf chain so as to be more frugal in our use of mbuf
clusters.
- The Winbond chip, like the ASIX, wants the 'TX interrupt request'
bit set in the _first_ fragment of a transmitted frame, not the
last. (At least the Winbond manual states this unambiguously; too
bad I wasn't paying attention when I read it the first time.)
- Turn off the transmit threshold mechanism (initialize the threshold
to 0). This effectively puts the chip in 'store and forward' mode
which seems to cut down on transmit errors a little. It may also
reduce transmit performace a bit, but I'm willing to do that if it
means better reliability.
Diffstat (limited to 'sys/pci/if_wbreg.h')
-rw-r--r-- | sys/pci/if_wbreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_wbreg.h b/sys/pci/if_wbreg.h index abe7ec5..17c55d8 100644 --- a/sys/pci/if_wbreg.h +++ b/sys/pci/if_wbreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_wbreg.h,v 1.12 1998/11/29 06:40:50 wpaul Exp $ + * $Id: if_wbreg.h,v 1.12 1998/11/29 06:40:50 wpaul Exp wpaul $ */ /* @@ -160,7 +160,7 @@ */ #define WB_TXTHRESH(x) ((x >> 5) << 14) #define WB_TXTHRESH_CHUNK 32 -#define WB_TXTHRESH_INIT 72 +#define WB_TXTHRESH_INIT 0 /*72*/ /* * Interrupt mask bits. |