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.
This commit is contained in:
briggs 2002-08-15 18:29:02 +00:00
parent 4251568ad8
commit 8d5eb3e93d
1 changed files with 2 additions and 1 deletions

View File

@ -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 @@ wm_start(struct ifnet *ifp)
* 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 |