Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2020 08:29:45 +0000 (UTC)
From:      Kristof Provost <kp@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: r368656 - stable/12/sys/netpfil/pf
Message-ID:  <202012150829.0BF8TjCe045491@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Tue Dec 15 08:29:45 2020
New Revision: 368656
URL: https://svnweb.freebsd.org/changeset/base/368656

Log:
  MFC r368588:
  
  pf: Allow net.pf.request_maxcount to be set from loader.conf
  
  Mark request_maxcount as RWTUN so we can set it both at runtime and from
  loader.conf. This avoids users getting caught out by the change from tunable to
  run time configuration.
  
  Suggested by:	Franco Fichtner

Modified:
  stable/12/sys/netpfil/pf/pf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/pf/pf.c
==============================================================================
--- stable/12/sys/netpfil/pf/pf.c	Tue Dec 15 07:31:00 2020	(r368655)
+++ stable/12/sys/netpfil/pf/pf.c	Tue Dec 15 08:29:45 2020	(r368656)
@@ -382,7 +382,7 @@ SYSCTL_ULONG(_net_pf, OID_AUTO, states_hashsize, CTLFL
     &pf_hashsize, 0, "Size of pf(4) states hashtable");
 SYSCTL_ULONG(_net_pf, OID_AUTO, source_nodes_hashsize, CTLFLAG_RDTUN,
     &pf_srchashsize, 0, "Size of pf(4) source nodes hashtable");
-SYSCTL_ULONG(_net_pf, OID_AUTO, request_maxcount, CTLFLAG_RW,
+SYSCTL_ULONG(_net_pf, OID_AUTO, request_maxcount, CTLFLAG_RWTUN,
     &pf_ioctl_maxcount, 0, "Maximum number of tables, addresses, ... in a single ioctl() call");
 
 VNET_DEFINE(void *, pf_swi_cookie);



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