freebsd-skq/usr.bin/netstat
fabient 97541ca804 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 various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
if.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
inet6.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
inet.c Add the "TCP Blackbox Recorder" which we discussed at the developer 2018-03-22 09:40:08 +00:00
ipsec.c Add a SPD cache to speed up lookups. 2018-05-22 15:54:25 +00:00
main.c Add the "TCP Blackbox Recorder" which we discussed at the developer 2018-03-22 09:40:08 +00:00
Makefile After inpcb route caching was put back in place there is no need for 2017-07-27 13:03:36 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mbuf.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
mroute6.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
mroute.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
netgraph.c Hide struct socket and struct unpcb from the userland. 2017-10-02 23:29:56 +00:00
netisr.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
netstat.1 Bump netstat.1's .Dd after r331347. 2018-03-22 09:43:15 +00:00
netstat.h Add the "TCP Blackbox Recorder" which we discussed at the developer 2018-03-22 09:40:08 +00:00
nlist_symbols Print running TCP connection counts with TCP statistics. 2016-03-15 00:19:30 +00:00
pfkey.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
route.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sctp.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
unix.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00