Because we know received bytes including CRC there is no reason to

call m_adj(9). The controller also seems to have a capability to
strip CRC bytes but I failed to activate this feature except for
loopback traffic.
This commit is contained in:
yongari 2009-11-20 20:25:21 +00:00
parent 19294d603b
commit 7856588d16

View File

@ -1982,11 +1982,9 @@ et_rxeof(struct et_softc *sc)
m = NULL;
ifp->if_ierrors++;
} else {
m->m_pkthdr.len = m->m_len = buflen;
m->m_pkthdr.len = m->m_len =
buflen - ETHER_CRC_LEN;
m->m_pkthdr.rcvif = ifp;
m_adj(m, -ETHER_CRC_LEN);
ifp->if_ipackets++;
ET_UNLOCK(sc);
ifp->if_input(ifp, m);