Fix stupid error in r212109 which didn't swap DMA maps. This caused

IOMMU panic on sparc64 under high TX load.
This commit is contained in:
Pyun YongHyeon 2010-09-02 00:44:05 +00:00
parent 090c02f8bd
commit 8c6cd8631f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212124

View File

@ -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);