Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/sys/dev/pci Pull up revision 1.27 (requested by bouyer in...
details: https://anonhg.NetBSD.org/src/rev/63e103cc69e7
branches: netbsd-2
changeset: 563759:63e103cc69e7
user: riz <riz%NetBSD.org@localhost>
date: Tue Jun 21 23:10:02 2005 +0000
description:
Pull up revision 1.27 (requested by bouyer in ticket #2009):
Fix some big-endian issues. stge(4) now works on sparc64 with hardware
checksums.
diffstat:
sys/dev/pci/if_stge.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r f38911c7ea0c -r 63e103cc69e7 sys/dev/pci/if_stge.c
--- a/sys/dev/pci/if_stge.c Tue Jun 21 23:04:51 2005 +0000
+++ b/sys/dev/pci/if_stge.c Tue Jun 21 23:10:02 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_stge.c,v 1.19.6.1 2005/01/24 21:42:39 he Exp $ */
+/* $NetBSD: if_stge.c,v 1.19.6.2 2005/06/21 23:10:02 riz Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.19.6.1 2005/01/24 21:42:39 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stge.c,v 1.19.6.2 2005/06/21 23:10:02 riz Exp $");
#include "bpfilter.h"
@@ -902,15 +902,15 @@
csum_flags = 0;
if (m0->m_pkthdr.csum_flags & M_CSUM_IPv4) {
STGE_EVCNT_INCR(&sc->sc_ev_txipsum);
- csum_flags |= htole64(TFD_IPChecksumEnable);
+ csum_flags |= TFD_IPChecksumEnable;
}
if (m0->m_pkthdr.csum_flags & M_CSUM_TCPv4) {
STGE_EVCNT_INCR(&sc->sc_ev_txtcpsum);
- csum_flags |= htole64(TFD_TCPChecksumEnable);
+ csum_flags |= TFD_TCPChecksumEnable;
} else if (m0->m_pkthdr.csum_flags & M_CSUM_UDPv4) {
STGE_EVCNT_INCR(&sc->sc_ev_txudpsum);
- csum_flags |= htole64(TFD_UDPChecksumEnable);
+ csum_flags |= TFD_UDPChecksumEnable;
}
/*
@@ -1515,8 +1515,8 @@
*/
memset(sc->sc_txdescs, 0, sizeof(sc->sc_txdescs));
for (i = 0; i < STGE_NTXDESC; i++) {
- sc->sc_txdescs[i].tfd_next =
- (uint64_t) STGE_CDTXADDR(sc, STGE_NEXTTX(i));
+ sc->sc_txdescs[i].tfd_next = htole64(
+ STGE_CDTXADDR(sc, STGE_NEXTTX(i)));
sc->sc_txdescs[i].tfd_control = htole64(TFD_TFDDone);
}
sc->sc_txpending = 0;
Home |
Main Index |
Thread Index |
Old Index