summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-10-06 20:09:29 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-10-06 20:09:29 +0000
commit7acdcc65e43b59a01d60be98651c7325869c4068 (patch)
tree90fdf3b64a909e7413cca3b30ce94b124d77ec6e /sys/dev/pci
parent854a26f2679de26f666f881e365881c4fcc38aa9 (diff)
Eliminate use of M_HASFCS.
From thorpej NetBSD
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_bce.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bce.c b/sys/dev/pci/if_bce.c
index fc9c9d5c77c..9c9ad45a7a3 100644
--- a/sys/dev/pci/if_bce.c
+++ b/sys/dev/pci/if_bce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bce.c,v 1.9 2005/08/09 04:10:11 mickey Exp $ */
+/* $OpenBSD: if_bce.c,v 1.10 2005/10/06 20:09:28 brad Exp $ */
/* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */
/*
@@ -803,6 +803,12 @@ bce_rxintr(sc)
/* bump past pre header to packet */
sc->bce_cdata.bce_rx_chain[i]->m_data += 30; /* MAGIC */
+ /*
+ * The chip includes the CRC with every packet. Trim
+ * it off here.
+ */
+ len -= ETHER_CRC_LEN;
+
/*
* If the packet is small enough to fit in a
* single header mbuf, allocate one and copy
@@ -837,7 +843,6 @@ bce_rxintr(sc)
}
}
-// m->m_flags |= M_HASFCS;
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = len;
ifp->if_ipackets++;