diff options
author | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-05-31 00:47:54 +0000 |
---|---|---|
committer | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2007-05-31 00:47:54 +0000 |
commit | 79c8ff5debd12ee33782fea0b9cd6605e7b52a62 (patch) | |
tree | 71cb6736decf3be49564fee74b6882d2c9cbaf02 | |
parent | aaddd998d61e87e1bdda77bfe133a7306c11cf9d (diff) |
1000 != 0x1000 (4096)
Bring the flow control delay time down to what the comment says it should
be. By using a smaller flow control pause time when the buffer isn't full,
my em(4) goes about 20Mbps faster.
-rw-r--r-- | sys/dev/pci/if_em.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 963e1747a10..37b7753e372 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ -/* $OpenBSD: if_em.c,v 1.170 2007/05/30 06:29:17 ckuethe Exp $ */ +/* $OpenBSD: if_em.c,v 1.171 2007/05/31 00:47:53 ckuethe Exp $ */ /* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */ #include <dev/pci/if_em.h> @@ -1607,7 +1607,7 @@ em_hardware_init(struct em_softc *sc) if (sc->hw.mac_type == em_80003es2lan) sc->hw.fc_pause_time = 0xFFFF; else - sc->hw.fc_pause_time = 0x1000; + sc->hw.fc_pause_time = 1000; sc->hw.fc_send_xon = TRUE; sc->hw.fc = E1000_FC_FULL; |