Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci On transmit, zero the upper 32 bits of the addre...



details:   https://anonhg.NetBSD.org/src/rev/4e021102ea5d
branches:  trunk
changeset: 535339:4e021102ea5d
user:      briggs <briggs%NetBSD.org@localhost>
date:      Thu Aug 15 18:29:02 2002 +0000

description:
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 01a8396f6e42 -r 4e021102ea5d sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Aug 15 10:37:02 2002 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Aug 15 18:29:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.17 2002/08/08 00:12:08 thorpej Exp $       */
+/*     $NetBSD: if_wm.c,v 1.18 2002/08/15 18:29:02 briggs Exp $        */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -1262,6 +1262,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