Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2019 20:00:37 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354042 - head/sys/netinet6
Message-ID:  <201910242000.x9OK0bQT032169@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Thu Oct 24 20:00:37 2019
New Revision: 354042
URL: https://svnweb.freebsd.org/changeset/base/354042

Log:
  frag6: export another counter read-only by sysctl
  
  Similar to the system global counter also export the per-VNET counter
  "frag6_nfragpackets" detailing the current number of fragment packets
  in this VNET's reassembly queues.
  The read-only counter is helpful for in-VNET statistical monitoring and
  for test-cases.
  
  MFC after:	3 weeks
  Sponsored by:	Netflix

Modified:
  head/sys/netinet6/frag6.c

Modified: head/sys/netinet6/frag6.c
==============================================================================
--- head/sys/netinet6/frag6.c	Thu Oct 24 20:00:28 2019	(r354041)
+++ head/sys/netinet6/frag6.c	Thu Oct 24 20:00:37 2019	(r354042)
@@ -202,6 +202,10 @@ SYSCTL_PROC(_net_inet6_ip6, IPV6CTL_MAXFRAGPACKETS, ma
 	"Default maximum number of outstanding fragmented IPv6 packets. "
 	"A value of 0 means no fragmented packets will be accepted, while a "
 	"a value of -1 means no limit");
+SYSCTL_UINT(_net_inet6_ip6, OID_AUTO, frag6_nfragpackets,
+	CTLFLAG_VNET | CTLFLAG_RD,
+	__DEVOLATILE(u_int *, &VNET_NAME(frag6_nfragpackets)), 0,
+	"Per-VNET number of IPv6 fragments across all reassembly queues.");
 SYSCTL_INT(_net_inet6_ip6, IPV6CTL_MAXFRAGSPERPACKET, maxfragsperpacket,
 	CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip6_maxfragsperpacket), 0,
 	"Maximum allowed number of fragments per packet");



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