After rev 1.16 rtk driver uses the CRC from the chip,

so no need to adjust Rx address for it. Fixes kern/11301.
This commit is contained in:
tsutsui 2000-11-30 15:33:04 +00:00
parent 64222ad03a
commit fd4d074b27
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtl81x9.c,v 1.19 2000/11/26 11:08:58 takemura Exp $ */
/* $NetBSD: rtl81x9.c,v 1.20 2000/11/30 15:33:04 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998
@ -1091,7 +1091,7 @@ STATIC void rtk_rxeof(sc)
m_copyback(m, wrap, total_len - wrap,
sc->rtk_cdata.rtk_rx_buf);
}
cur_rx = (total_len - wrap + ETHER_CRC_LEN);
cur_rx = total_len - wrap;
} else {
m = m_devget(rxbufpos - RTK_ETHER_ALIGN,
total_len + RTK_ETHER_ALIGN, 0, ifp, NULL);
@ -1102,7 +1102,7 @@ STATIC void rtk_rxeof(sc)
total_len);
} else
m_adj(m, RTK_ETHER_ALIGN);
cur_rx += total_len + 4 + ETHER_CRC_LEN;
cur_rx += total_len + 4;
}
/*