aboutsummaryrefslogtreecommitdiff
path: root/bin/pax
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-25 10:22:45 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-27 22:10:08 +0000
commit8a0d57baecf70aa7f49b0b1468f6264c75d8e6df (patch)
tree4c2808f622ebeeaec3b2ca7f59228f15d1252089 /bin/pax
parent6e1abda231bf2a80c010aaff1b99254467420e50 (diff)
downloadsrc-8a0d57baecf70aa7f49b0b1468f6264c75d8e6df.tar.gz
src-8a0d57baecf70aa7f49b0b1468f6264c75d8e6df.zip
[fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI.
Currently, most of the rib(9) KPI does not use rnh pointers, using fibnum and family parameters to determine the rib pointer instead. This works well except for the case when we initialize new rib pointers during fib growth. In that case, there is no mapping between fib/family and the new rib, as an entirely new rib pointer array is populated. Address this by delaying fib algo initialization till after switching to the new pointer array and updating the number of fibs. Set datapath pointer to the dummy function, so the potential callers won't crash the kernel in the brief moment when the rib exists, but no fib algo is attached. This change allows to avoid creating duplicates of existing rib functions, with altered signature. Differential Revision: https://reviews.freebsd.org/D29969 MFC after: 1 week
Diffstat (limited to 'bin/pax')
0 files changed, 0 insertions, 0 deletions