Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 20:41:28 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204372 - head/sys/dev/bce
Message-ID:  <201002262041.o1QKfSEq048155@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Fri Feb 26 20:41:28 2010
New Revision: 204372
URL: http://svn.freebsd.org/changeset/base/204372

Log:
  Prefer m_collapse(9) over m_defrag(9).
  
  Reviewed by:	davidch

Modified:
  head/sys/dev/bce/if_bce.c

Modified: head/sys/dev/bce/if_bce.c
==============================================================================
--- head/sys/dev/bce/if_bce.c	Fri Feb 26 20:39:07 2010	(r204371)
+++ head/sys/dev/bce/if_bce.c	Fri Feb 26 20:41:28 2010	(r204372)
@@ -6713,7 +6713,7 @@ bce_tx_encap_skip_tso:
 		sc->fragmented_mbuf_count++;
 
 		/* Try to defrag the mbuf. */
-		m0 = m_defrag(*m_head, M_DONTWAIT);
+		m0 = m_collapse(*m_head, M_DONTWAIT, BCE_MAX_SEGMENTS);
 		if (m0 == NULL) {
 			/* Defrag was unsuccessful */
 			m_freem(*m_head);



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