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
..
2017-10-31 00:07:04 +00:00
2018-01-29 14:15:44 +00:00
2017-10-31 00:07:04 +00:00
2018-05-19 00:26:00 +00:00
2018-01-24 14:24:17 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-05-02 01:32:34 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-04-13 18:04:51 +00:00
2017-10-31 00:07:04 +00:00
2018-04-25 18:56:27 +00:00
2017-10-31 00:07:04 +00:00
2017-12-01 21:44:23 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-04-10 14:44:07 +00:00
2017-10-31 00:07:04 +00:00
2018-03-02 23:31:55 +00:00
2017-11-20 08:52:33 +00:00
2017-12-06 17:50:10 +00:00
2017-10-31 00:07:04 +00:00
2018-04-25 15:39:36 +00:00
2018-04-13 09:04:31 +00:00
2018-01-06 15:52:28 +00:00
2017-12-28 05:33:49 +00:00
2017-10-31 00:07:04 +00:00
2018-01-30 09:59:52 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-12-01 03:22:40 +00:00
2018-02-26 18:04:17 +00:00
2017-10-31 00:07:04 +00:00
2018-02-07 20:36:37 +00:00
2017-12-05 07:11:56 +00:00
2018-05-11 00:01:43 +00:00
2017-10-31 00:07:04 +00:00
2017-12-28 05:33:39 +00:00
2017-12-06 02:47:46 +00:00
2018-05-04 14:39:32 +00:00
2018-03-29 02:13:58 +00:00
2018-04-28 12:24:05 +00:00
2018-05-02 01:17:08 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-29 08:03:21 +00:00
2017-06-16 06:29:21 +00:00
2017-06-16 06:29:21 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00