Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2010 14:53:43 +0000 (UTC)
From:      Marko Zec <zec@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: r208146 - stable/8/sys/netgraph
Message-ID:  <201005161453.o4GErhEt032249@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zec
Date: Sun May 16 14:53:43 2010
New Revision: 208146
URL: http://svn.freebsd.org/changeset/base/208146

Log:
  MFC r208036:
  
    Increase the target buffer for performing NGM_ASCII2BINARY conversion
    from 2000 bytes to 20 Kbytes, which now matches the buffer size used for
    NGM_BINARY2ASCII conversions.
  
    The aim of this change is to allow for bigger binary structures to be
    managed via netgraph ASCII messages, until we come up with an API
    improvement which would get rid of such arbitrary hardcoded limits.

Modified:
  stable/8/sys/netgraph/ng_base.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)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/netgraph/ng_base.c
==============================================================================
--- stable/8/sys/netgraph/ng_base.c	Sun May 16 14:51:36 2010	(r208145)
+++ stable/8/sys/netgraph/ng_base.c	Sun May 16 14:53:43 2010	(r208146)
@@ -2763,7 +2763,7 @@ ng_generic_msg(node_p here, item_p item,
 
 	case NGM_ASCII2BINARY:
 	    {
-		int bufSize = 2000;	/* XXX hard coded constant */
+		int bufSize = 20 * 1024;	/* XXX hard coded constant */
 		const struct ng_cmdlist *c;
 		const struct ng_parse_type *argstype;
 		struct ng_mesg *ascii, *binary;



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