svn commit: r221343 - head/sys/dev/bge
Marius Strobl
marius at FreeBSD.org
Mon May 2 20:45:19 UTC 2011
Author: marius
Date: Mon May 2 20:45:19 2011
New Revision: 221343
URL: http://svn.freebsd.org/changeset/base/221343
Log:
Fix an logic bug which caused jumbo buffers to not be synced.
Reported and tested by: Michael Moll
MFC after: 3 days
Modified:
head/sys/dev/bge/if_bge.c
Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c Mon May 2 20:43:24 2011 (r221342)
+++ head/sys/dev/bge/if_bge.c Mon May 2 20:45:19 2011 (r221343)
@@ -1022,7 +1022,7 @@ bge_newbuf_jumbo(struct bge_softc *sc, i
return (error);
}
- if (sc->bge_cdata.bge_rx_jumbo_chain[i] == NULL) {
+ if (sc->bge_cdata.bge_rx_jumbo_chain[i] != NULL) {
bus_dmamap_sync(sc->bge_cdata.bge_mtag_jumbo,
sc->bge_cdata.bge_rx_jumbo_dmamap[i], BUS_DMASYNC_POSTREAD);
bus_dmamap_unload(sc->bge_cdata.bge_mtag_jumbo,
More information about the svn-src-all
mailing list