From 3945a33835eaebb0ec42e38e36f0ca8ddae3c611 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 11 Oct 2005 23:58:37 +0000 Subject: have gem strip off the Ethernet FCS before passing it to bpf. ok krw@, also tested by Peter Hessler on macppc --- sys/dev/ic/gem.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 765da286191..d168a4b21c6 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.44 2005/09/10 20:42:32 brad Exp $ */ +/* $OpenBSD: gem.c,v 1.45 2005/10/11 23:58:36 brad Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -796,7 +796,7 @@ gem_init(struct ifnet *ifp) /* step 12. RX_MAC Configuration Register */ v = bus_space_read_4(t, h, GEM_MAC_RX_CONFIG); - v |= GEM_MAC_RX_ENABLE; + v |= GEM_MAC_RX_ENABLE | GEM_MAC_RX_STRIP_CRC; bus_space_write_4(t, h, GEM_MAC_RX_CONFIG, v); /* step 14. Issue Transmit Pending command */ @@ -959,10 +959,7 @@ gem_rint(sc) } #endif - /* - * No errors; receive the packet. Note the Gem - * includes the CRC with every packet. - */ + /* No errors; receive the packet. */ len = GEM_RD_BUFLEN(rxstat); /* -- cgit v1.2.3