Alexander V. Chernikov 6b8ef0d428 Add batched update support for the fib algo.
Initial fib algo implementation was build on a very simple set of
 principles w.r.t updates:

1) algorithm is ether able to apply the change synchronously (DIR24-8)
 or requires full rebuild (bsearch, lradix).
2) framework falls back to rebuild on every error (memory allocation,
 nhg limit, other internal algo errors, etc).

This changes brings the new "intermediate" concept - batched updates.
Algotirhm can indicate that the particular update has to be handled in
 batched fashion (FLM_BATCH).
The framework will write this update and other updates to the temporary
 buffer instead of pushing them to the algo callback.
Depending on the update rate, the framework will batch 50..1024 ms of updates
 and submit them to a different algo callback.

This functionality is handy for the slow-to-rebuild algorithms like DXR.

Differential Revision:	https://reviews.freebsd.org/D29588
Reviewed by:	zec
MFC after:	2 weeks
2021-04-14 23:54:11 +01:00
..
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2019-12-21 21:01:03 +00:00
2019-07-14 03:49:48 +00:00
2019-03-09 01:12:59 +00:00
2021-01-29 21:43:20 +00:00
2020-12-29 17:35:06 +01:00
2021-03-13 18:26:15 +01:00
2019-07-25 22:23:34 +00:00
2021-02-11 16:12:29 +01:00
2021-04-05 07:54:47 +00:00
2020-11-20 14:45:45 +00:00
2021-04-02 07:01:20 +00:00
2020-10-16 11:22:29 +00:00
2021-04-10 13:48:25 +00:00
2018-06-16 19:21:09 +00:00
2021-02-11 16:12:29 +01:00