summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-11-21 18:50:44 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-11-21 18:50:44 +0000
commit4c48c27bfdfe852510b39d3c2c90e6833edfbfec (patch)
tree2b673815b6db2c245302a1f618f9b59991fcfbd5 /sys
parent5d98d116d00db48f37e5b50d8b807f75afe02e1f (diff)
revert part of rev 1.29 which caused a severe performance drop.
ok mcbride@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/rtl81x9.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index 131b53fca84..9aa4e907c53 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.34 2004/10/13 22:49:24 miod Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.35 2004/11/21 18:50:43 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -680,13 +680,12 @@ rl_rxeof(sc)
if (m == NULL)
ifp->if_ierrors++;
else {
+ m_adj(m, ETHER_ALIGN);
m_copyback(m, wrap, total_len - wrap,
sc->rl_cdata.rl_rx_buf);
m = m_pullup(m, sizeof(struct ether_header));
if (m == NULL)
ifp->if_ierrors++;
- else
- m_adj(m, ETHER_ALIGN);
}
cur_rx = (total_len - wrap + ETHER_CRC_LEN);
} else {