svn commit: r257893 - projects/altix2/sys/dev/bge
Marcel Moolenaar
marcel at FreeBSD.org
Sat Nov 9 19:43:16 UTC 2013
Author: marcel
Date: Sat Nov 9 19:43:16 2013
New Revision: 257893
URL: http://svnweb.freebsd.org/changeset/base/257893
Log:
Use the correct map to setup the jumbo RX ring entry.
Modified:
projects/altix2/sys/dev/bge/if_bge.c
Modified: projects/altix2/sys/dev/bge/if_bge.c
==============================================================================
--- projects/altix2/sys/dev/bge/if_bge.c Sat Nov 9 18:46:11 2013 (r257892)
+++ projects/altix2/sys/dev/bge/if_bge.c Sat Nov 9 19:43:16 2013 (r257893)
@@ -1408,7 +1408,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, i
r->bge_flags = BGE_RXBDFLAG_JUMBO_RING | BGE_RXBDFLAG_END;
r->bge_idx = i;
r->bge_len3 = r->bge_len2 = r->bge_len1 = 0;
- map = sc->bge_cdata.bge_rx_jumbo_sparemap;
+ map = sc->bge_cdata.bge_rx_jumbo_dmamap[i];
nsegs = busdma_md_get_nsegs(map);
switch (nsegs) {
case 4:
@@ -1444,7 +1444,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, i
panic("%s: %d segments\n", __func__, nsegs);
}
- busdma_sync(sc->bge_cdata.bge_rx_jumbo_dmamap[i], BUSDMA_SYNC_PREREAD);
+ busdma_sync(map, BUSDMA_SYNC_PREREAD);
return (0);
}
More information about the svn-src-projects
mailing list