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");
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to