svn commit: r340051 - stable/11/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Fri Nov 2 14:07:07 UTC 2018


Author: bz
Date: Fri Nov  2 14:07:06 2018
New Revision: 340051
URL: https://svnweb.freebsd.org/changeset/base/340051

Log:
  MFC r339930:
  
    With more excessive use of modules, more kernel parts working with
    VIMAGE, and feature richness and global state increasing the 8k of
    vnet module space are no longer sufficient for people and loading
    multiple modules, e.g., pf(4) and ipl(4) or ipsec(4) will fail on
    the second module.
  
    Increase the module space to 8 * PAGE_SIZE which should be enough
    to hold multiple firewalls, ipsec, multicast (as in the old days was
    a problem), epair, carp, and any kind of other vnet enabled modules.
  
    Sadly this is a global byte array part of the vnet_set, so we cannot
    dynamically change its size;  otherwise a TUNABLE would have been
    a better solution.
  
  PR:			228854

Modified:
  stable/11/sys/net/vnet.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/net/vnet.c
==============================================================================
--- stable/11/sys/net/vnet.c	Fri Nov  2 13:48:06 2018	(r340050)
+++ stable/11/sys/net/vnet.c	Fri Nov  2 14:07:06 2018	(r340051)
@@ -169,7 +169,7 @@ static MALLOC_DEFINE(M_VNET_DATA, "vnet_data", "VNET d
  * we want the virtualized global variable space to be page-sized, we may
  * have more space than that in practice.
  */
-#define	VNET_MODMIN	8192
+#define	VNET_MODMIN	(8 * PAGE_SIZE)
 #define	VNET_SIZE	roundup2(VNET_BYTES, PAGE_SIZE)
 
 /*


More information about the svn-src-all mailing list