NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/46083: gem(4) is broken on NetBSD 6_BETA (macppc)
The following reply was made to PR kern/46083; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/46083: gem(4) is broken on NetBSD 6_BETA (macppc)
Date: Tue, 17 May 2016 02:31:08 +0300
This patch against -6 seems to fix it for me. I guess this is also
why TCP checksumming was "broken".
--- gem.c.~1.98.2.1.~ 2016-05-17 02:04:34.000000000 +0300
+++ gem.c 2016-05-17 02:20:23.000000000 +0300
@@ -1365,14 +1365,12 @@
return;
/*
- * Remember the previous number of free descriptors and
- * the first descriptor we'll use.
+ * Remember the previous number of free descriptors.
*/
ofree = sc->sc_txfree;
- firsttx = sc->sc_txnext;
DPRINTF(sc, ("%s: gem_start: txfree %d, txnext %d\n",
- device_xname(sc->sc_dev), ofree, firsttx));
+ device_xname(sc->sc_dev), ofree, sc->sc_txnext));
/*
* Loop through the send queue, setting up transmit descriptors
@@ -1477,7 +1475,8 @@
/*
* Initialize the transmit descriptors.
*/
- for (nexttx = sc->sc_txnext, seg = 0;
+ firsttx = sc->sc_txnext;
+ for (nexttx = firsttx, seg = 0;
seg < dmamap->dm_nsegs;
seg++, nexttx = GEM_NEXTTX(nexttx)) {
<end of patch>
-uwe
Home |
Main Index |
Thread Index |
Old Index