frag6: add read-only sysctl for nfrags.
Add a read-only sysctl exporting the global number of fragments (base system and all vnets). This is helpful to (a) know how many fragments are currently being processed, (b) if there are possible leaks, (c) if vnet teardown is not working correctly, and lastly (d) it can be used as part of test-suits to ensure (a) to (c). MFC after: 3 weeks Sponsored by: Netflix
This commit is contained in:
parent
a9b0e78c84
commit
65456706c0
@ -150,6 +150,10 @@ VNET_DEFINE_STATIC(uint32_t, ip6qb_hashseed);
|
||||
*/
|
||||
SYSCTL_DECL(_net_inet6_ip6);
|
||||
|
||||
SYSCTL_UINT(_net_inet6_ip6, OID_AUTO, frag6_nfrags,
|
||||
CTLFLAG_RD, __DEVOLATILE(u_int *, &frag6_nfrags), 0,
|
||||
"Global number of IPv6 fragments across all reassembly queues.");
|
||||
|
||||
static void
|
||||
frag6_set_bucketsize(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user