summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-03-31 15:31:23 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-03-31 15:31:23 +0000
commitcb5a8f700a7479285cf6662832e9aa222502572e (patch)
treec967fe1b9b3c97b044a1dd352409cc1f468e08d8
parent6693efb550349e6f24c8eaaa9b4c4679692b6d7a (diff)
enable receive checksum offload
-rw-r--r--sys/dev/pci/if_em.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 773e67104ec..be7ea6a64ed 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
-/* $OpenBSD: if_em.c,v 1.42 2005/03/27 17:11:13 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.43 2005/03/31 15:31:22 brad Exp $ */
#include "bpfilter.h"
#include "vlan.h"
@@ -2311,9 +2311,7 @@ void
em_initialize_receive_unit(struct em_softc *sc)
{
u_int32_t reg_rctl;
-#if 0
u_int32_t reg_rxcsum;
-#endif
struct ifnet *ifp;
u_int64_t bus_addr;
@@ -2378,13 +2376,11 @@ em_initialize_receive_unit(struct em_softc *sc)
reg_rctl |= E1000_RCTL_LPE;
/* Enable 82543 Receive Checksum Offload for TCP and UDP */
-#if 0
if (sc->hw.mac_type >= em_82543) {
reg_rxcsum = E1000_READ_REG(&sc->hw, RXCSUM);
reg_rxcsum |= (E1000_RXCSUM_IPOFL | E1000_RXCSUM_TUOFL);
E1000_WRITE_REG(&sc->hw, RXCSUM, reg_rxcsum);
}
-#endif
/* Enable Receives */
E1000_WRITE_REG(&sc->hw, RCTL, reg_rctl);