Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2011 20:02:24 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r221544 - stable/8/sys/dev/bge
Message-ID:  <201105062002.p46K2OP3063920@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Fri May  6 20:02:23 2011
New Revision: 221544
URL: http://svn.freebsd.org/changeset/base/221544

Log:
  MFC: r221343
  
  Fix an logic bug which caused jumbo buffers to not be synced and unloaded.
  Reported and tested by: Michael Moll

Modified:
  stable/8/sys/dev/bge/if_bge.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/dev/bge/if_bge.c
==============================================================================
--- stable/8/sys/dev/bge/if_bge.c	Fri May  6 20:02:19 2011	(r221543)
+++ stable/8/sys/dev/bge/if_bge.c	Fri May  6 20:02:23 2011	(r221544)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105062002.p46K2OP3063920>