From 8d5eb3e93d537fbfeb0ad1288be9841849b937ea Mon Sep 17 00:00:00 2001 From: briggs Date: Thu, 15 Aug 2002 18:29:02 +0000 Subject: [PATCH] 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. --- sys/dev/pci/if_wm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_wm.c b/sys/dev/pci/if_wm.c index 9c3c22c7af5a..d69032b07d80 100644 --- a/sys/dev/pci/if_wm.c +++ b/sys/dev/pci/if_wm.c @@ -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 |