svn commit: r199610 - head/sys/dev/et
Pyun YongHyeon
yongari at FreeBSD.org
Fri Nov 20 20:25:22 UTC 2009
Author: yongari
Date: Fri Nov 20 20:25:21 2009
New Revision: 199610
URL: http://svn.freebsd.org/changeset/base/199610
Log:
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.
Modified:
head/sys/dev/et/if_et.c
Modified: head/sys/dev/et/if_et.c
==============================================================================
--- head/sys/dev/et/if_et.c Fri Nov 20 20:18:53 2009 (r199609)
+++ head/sys/dev/et/if_et.c Fri Nov 20 20:25:21 2009 (r199610)
@@ -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);
More information about the svn-src-all
mailing list