Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Disable TCP/UDP checksums on the receive side ag...
details: https://anonhg.NetBSD.org/src/rev/d747dcd061ce
branches: trunk
changeset: 533335:d747dcd061ce
user: fvdl <fvdl%NetBSD.org@localhost>
date: Thu Jun 27 22:10:11 2002 +0000
description:
Disable TCP/UDP checksums on the receive side again.
diffstat:
sys/dev/pci/if_bge.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 6e7c43c6f3d4 -r d747dcd061ce sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Thu Jun 27 21:15:35 2002 +0000
+++ b/sys/dev/pci/if_bge.c Thu Jun 27 22:10:11 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.3 2002/06/26 10:48:18 cjs Exp $ */
+/* $NetBSD: if_bge.c,v 1.4 2002/06/27 22:10:11 fvdl Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2001
@@ -2043,12 +2043,14 @@
m->m_pkthdr.csum_flags |= M_CSUM_IPv4;
if ((cur_rx->bge_ip_csum ^ 0xffff) != 0)
m->m_pkthdr.csum_flags |= M_CSUM_IPv4_BAD;
+#if 0 /* XXX appears to be broken */
if (cur_rx->bge_flags & BGE_RXBDFLAG_TCP_UDP_CSUM) {
m->m_pkthdr.csum_data =
cur_rx->bge_tcp_udp_csum;
m->m_pkthdr.csum_flags |=
(M_CSUM_TCPv4|M_CSUM_UDPv4|M_CSUM_DATA);
}
+#endif
}
/*
Home |
Main Index |
Thread Index |
Old Index