summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>2001-12-14 22:04:58 +0000
committerdg <dg@FreeBSD.org>2001-12-14 22:04:58 +0000
commit1d5fbcbdb0c947a393f140ca657e2d6561cb89a9 (patch)
treeb2b9c8cff0e0276bc75b67dbca4b6771b1eda99e /sys/dev/bge
parentb502c619cdc22b34fe36a65ccc5b96b211bf56f2 (diff)
downloadFreeBSD-src-1d5fbcbdb0c947a393f140ca657e2d6561cb89a9.zip
FreeBSD-src-1d5fbcbdb0c947a393f140ca657e2d6561cb89a9.tar.gz
Disabled input hardware checksum due to it being calculated incorrected
for some packets, in particular small (0 byte payload) packets. May also be related to TCP options. Approved by: wpaul MFC after: 3 days
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index d9c87f2..eb3f7e6 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -1890,6 +1890,7 @@ bge_rxeof(sc)
/* Remove header from mbuf and pass it on. */
m_adj(m, sizeof(struct ether_header));
+#if 0 /* currently broken for some packets, possibly related to TCP options */
if (ifp->if_hwassist) {
m->m_pkthdr.csum_flags |= CSUM_IP_CHECKED;
if ((cur_rx->bge_ip_csum ^ 0xffff) == 0)
@@ -1900,6 +1901,7 @@ bge_rxeof(sc)
m->m_pkthdr.csum_flags |= CSUM_DATA_VALID;
}
}
+#endif
/*
* If we received a packet with a vlan tag, pass it
OpenPOWER on IntegriCloud