diff options
author | dg <dg@FreeBSD.org> | 2001-12-14 22:04:58 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 2001-12-14 22:04:58 +0000 |
commit | 1d5fbcbdb0c947a393f140ca657e2d6561cb89a9 (patch) | |
tree | b2b9c8cff0e0276bc75b67dbca4b6771b1eda99e /sys/dev/bge | |
parent | b502c619cdc22b34fe36a65ccc5b96b211bf56f2 (diff) | |
download | FreeBSD-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.c | 2 |
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 |