From 1fcf36ca197dd4d8e333d8fab7261613651c2cf2 Mon Sep 17 00:00:00 2001 From: yongari Date: Thu, 2 Sep 2010 00:44:05 +0000 Subject: Fix stupid error in r212109 which didn't swap DMA maps. This caused IOMMU panic on sparc64 under high TX load. --- sys/dev/sis/if_sis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/sis') diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index 8886617..46d7b1f 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -1883,8 +1883,8 @@ sis_encap(struct sis_softc *sc, struct mbuf **m_head) /* Swap the last and the first dmamaps. */ map = txd->tx_dmamap; - txd->tx_dmamap = sc->sis_txdesc[frag].tx_dmamap; - sc->sis_txdesc[frag].tx_dmamap = map; + txd->tx_dmamap = sc->sis_txdesc[prod].tx_dmamap; + sc->sis_txdesc[prod].tx_dmamap = map; txd->tx_m = *m_head; return (0); -- cgit v1.1