Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/pci Pull up revision 1.18 (requested by briggs ...



details:   https://anonhg.NetBSD.org/src/rev/a55d0d60fddd
branches:  netbsd-1-6
changeset: 529012:a55d0d60fddd
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Aug 17 15:46:27 2002 +0000

description:
Pull up revision 1.18 (requested by briggs in ticket #683):
On transmit, zero the upper 32 bits of the address in the tx descriptor.
The descriptor may have been used as as context descriptor in the past,
in which case this field will be non-zero.  h/w checksum offload works now.

diffstat:

 sys/dev/pci/if_wm.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c110ad26fe64 -r a55d0d60fddd sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Sat Aug 17 15:45:39 2002 +0000
+++ b/sys/dev/pci/if_wm.c       Sat Aug 17 15:46:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.9.4.4 2002/07/15 16:17:53 thorpej Exp $    */
+/*     $NetBSD: if_wm.c,v 1.9.4.5 2002/08/17 15:46:27 lukem Exp $      */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -1224,6 +1224,7 @@
                         * Note: we currently only use 32-bit DMA
                         * addresses.
                         */
+                       sc->sc_txdescs[nexttx].wtx_addr.wa_high = 0;
                        sc->sc_txdescs[nexttx].wtx_addr.wa_low =
                            htole32(dmamap->dm_segs[seg].ds_addr);
                        sc->sc_txdescs[nexttx].wtx_cmdlen = cksumcmd |



Home | Main Index | Thread Index | Old Index