1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/usr.bin/netstat
Fabien Thomas f8e73c47d8 Add a SPD cache to speed up lookups.
When large SPDs are used, we face two problems:

- too many CPU cycles are spent during the linear searches in the SPD
  for each packet
- too much contention on multi socket systems, since we use a single
  shared lock.

Main changes:

- added the sysctl tree 'net.key.spdcache' to control the SPD cache
  (disabled by default).
- cache the sp indexes that are used to perform SP lookups.
- use a range of dedicated mutexes to protect the cache lines.

Submitted by: Emeric Poupon <emeric.poupon@stormshield.eu>
Reviewed by: ae
Sponsored by:	Stormshield
Differential Revision: https://reviews.freebsd.org/D15050
2018-05-22 15:54:25 +00:00
..
bpf.c
if.c
inet6.c
inet.c
ipsec.c Add a SPD cache to speed up lookups. 2018-05-22 15:54:25 +00:00
main.c
Makefile
Makefile.depend
mbuf.c
mroute6.c
mroute.c
netgraph.c
netisr.c
netstat.1 Bump netstat.1's .Dd after r331347. 2018-03-22 09:43:15 +00:00
netstat.h
nlist_symbols
pfkey.c
route.c
sctp.c
unix.c