HomeFreeBSD

fib algo: do not reallocate datapath index for datapath ptr update.

Description

fib algo: do not reallocate datapath index for datapath ptr update.

Fib algo uses a per-family array indexed by the fibnum to store
lookup function pointers and per-fib data.

Each algorithm rebuild currently requires re-allocating this array
to support atomic change of two pointers.

As in reality most of the changes actually involve changing only
data pointer, add a shortcut performing in-flight pointer update.

MFC after: 2 weeks

(cherry picked from commit 0abb6ff590842114c74e5d52e1af65605bd9d960)

Details

Provenance
melifaroAuthored on Apr 18 2021, 3:03 PM
Parents
rGc971873acef4: Implement better rebuild-delay fib algo policy.
Branches
Unknown
Tags
Unknown