svn commit: r229857 - head/sys/contrib/pf/net

Gleb Smirnoff glebius at FreeBSD.org
Mon Jan 9 14:35:06 UTC 2012


Author: glebius
Date: Mon Jan  9 14:35:05 2012
New Revision: 229857
URL: http://svn.freebsd.org/changeset/base/229857

Log:
  Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage
  to another mbuf.

Modified:
  head/sys/contrib/pf/net/if_pfsync.c

Modified: head/sys/contrib/pf/net/if_pfsync.c
==============================================================================
--- head/sys/contrib/pf/net/if_pfsync.c	Mon Jan  9 14:23:18 2012	(r229856)
+++ head/sys/contrib/pf/net/if_pfsync.c	Mon Jan  9 14:35:05 2012	(r229857)
@@ -2163,8 +2163,7 @@ pfsync_sendout(void)
 	if (pktlen > MHLEN) {
 		/* Find the right pool to allocate from. */
 		/* XXX: This is ugly. */
-		m_cljget(m, M_DONTWAIT, pktlen <= MSIZE ? MSIZE :
-			pktlen <= MCLBYTES ? MCLBYTES :
+		m_cljget(m, M_DONTWAIT, pktlen <= MCLBYTES ? MCLBYTES :
 #if MJUMPAGESIZE != MCLBYTES
 			pktlen <= MJUMPAGESIZE ? MJUMPAGESIZE :
 #endif


More information about the svn-src-all mailing list