ARP has a sysctl to show the number of packets waiting for an arp
authorbluhm <bluhm@openbsd.org>
Wed, 5 Apr 2023 21:51:47 +0000 (21:51 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 5 Apr 2023 21:51:47 +0000 (21:51 +0000)
commite2c3420425c610cd82369970f9c34d0a370ebcdd
tree8863b0f40a245ba856e0c0036a469a6a12d77ab1
parente0e67b981de1c260417f1b68fd50d5ec01427a2a
ARP has a sysctl to show the number of packets waiting for an arp
response.  Implement analog sysctl net.inet6.icmp6.nd6_queued for
ND6 to reduce places where mbufs can hide within the kernel.
Atomic operations operate on unsigned int.  Make the type of total
hold queue length consistent.
Use atomic load to read the value for the sysctl.  This clarifies
why no lock around sysctl_rdint() is needed.
OK mvs@ kn@
sys/netinet/icmp6.h
sys/netinet/if_ether.c
sys/netinet/ip_input.c
sys/netinet/ip_var.h
sys/netinet6/icmp6.c
sys/netinet6/nd6.c
sys/netinet6/nd6.h