Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2018 12:50:39 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r339951 - stable/12/sys/net
Message-ID:  <201810311250.w9VCodFN075621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Oct 31 12:50:39 2018
New Revision: 339951
URL: https://svnweb.freebsd.org/changeset/base/339951

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
     Reported by:	Ernie Luzar, Marek Zarychta
  
  Approved by:	re (kib)

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

Modified: stable/12/sys/net/vnet.c
==============================================================================
--- stable/12/sys/net/vnet.c	Wed Oct 31 12:49:18 2018	(r339950)
+++ stable/12/sys/net/vnet.c	Wed Oct 31 12:50:39 2018	(r339951)
@@ -171,7 +171,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)
 
 /*



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