HomeFreeBSD

Fib algo: extend KPI by allowing algo to set datapath pointers.

Description

Fib algo: extend KPI by allowing algo to set datapath pointers.

Some algorithms may require updating datapath and control plane
algo pointers after the (batched) updates.

Export fib_set_datapath_ptr() to allow setting the new datapath
function or data pointer from the algo.
Add fib_set_algo_ptr() to allow updating algo control plane
pointer from the algo.
Add fib_epoch_call() epoch(9) wrapper to simplify freeing old
datapath state.

Reviewed by: zec
Differential Revision: https://reviews.freebsd.org/D29799
MFC after: 1 week

(cherry picked from commit e2f79d9e518f885bf875f6613e70af39b7c397de)

Details

Provenance
melifaroAuthored on Apr 15 2021, 5:44 PM
Reviewer
zec
Differential Revision
D29799: Fib algo: extend KPI by allowing algo to set datapath pointers.
Parents
rGe284a6234ffb: linuxkpi: reduce number of stray mm_struct allocations
Branches
Unknown
Tags
Unknown