- 论坛徽章:
- 0
|
解决“FreeBSD NAT 较Win2ksNAT慢”难题 的备忘录
5. 我找到的8139forBSD的官方驱动原码包,以及替换方法。
5.1 Realtek官方8139 for FreeBSD 驱动下载地址:
#此驱动,RealTek官方,标明只是支持FreeBSD 4.x版本!有朋友在5.x使用过,性能比原5.x带的要差好多。#
ftp://210.51.181.211/cn/nic/rtl8139abcd8130810xseries/freebsd-8139(110).zip
5.2 替换方法:
把下载的驱动压缩包解压,把里面的if_rlreg.h if_rl.c
复制到 /usr/src/sys/pci 把原FreeBSD 原码带的 rl驱动原码覆盖就可以了。
#在重新编译内核后,就已经使用新的RealTek官方8139驱动了。
5.3 FreeBSD 4.8原带的8139原码 与 Realtek官方原码 的说明注释对比:
a. FreeBSD:
- * Copyright (c) 1997, 1998
- * Bill Paul <wpaul@ctr.columbia.edu>;. All rights reserved.
- #include <sys/cdefs.h>;
- __FBSDID("$FreeBSD: src/sys/pci/if_rl.c,v 1.126 2003/11/28 05:28:29 imp Exp $");
- /*
- * RealTek 8129/8139 PCI NIC driver
复制代码
b. RealTek官方驱动:
-
- Copyright (c) 1997, 1998
- * Bill Paul <wpaul@ctr.columbia.edu>;. All rights reserved.
- * $FreeBSD: src/sys/pci/if_rl.c,v 1.38.2.7 2001/07/19 18:33:07 wpaul Exp $
- */
- /*
- * RealTek 8129/8139 PCI NIC driver
-
复制代码
c.FreeBSD 版的8139 驱动作者在 驱动原码里对8139 网卡的 评价!很恶劣,但是的确是实话!
Well, I wouldn't get that card if I were you. FreeBSD has a driver for it,
but according to the author (Bill Paul), it's a really crappy card. Here's
a quote from FreeBSD's sys/pci/if_rl.c:
/*
* RealTek 8129/8139 PCI NIC driver
*
* Supports several extremely cheap PCI 10/100 adapters based on
* the RealTek chipset. Datasheets can be obtained from
* www.realtek.com.tw.
*
* Written by Bill Paul <wpaul@ctr.columbia.edu>;
* Electrical Engineering Department
* Columbia University, New York City
*/
/*
* The RealTek 8139 PCI NIC redefines the meaning of 'low end.' This is
* probably the worst PCI ethernet controller ever made, with the possible
* exception of the FEAST chip made by SMC. The 8139 supports bus-master
* DMA, but it has a terrible interface that nullifies any performance
* gains that bus-master DMA usually offers.
[ ... ]
*
* It's impossible given this rotten design to really achieve decent
* performance at 100Mbps, unless you happen to have a 400Mhz PII or
* some equally overmuscled CPU to drive it.
*
[ ... ] |
|