]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[fib algo] always commit static routes synchronously.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Tue, 27 Apr 2021 08:23:29 +0000 (08:23 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Tue, 27 Apr 2021 08:31:40 +0000 (08:31 +0000)
commit439d087d0b55574db81f4a2799a411c1236d95e3
treeb48c907d7c8c7f37118a5eb739b6f8ffcd0edcca
parent25682e6a495fc6669d799bb64acdaf14d653173e
[fib algo] always commit static routes synchronously.

Modular fib lookup framework features logic that allows
 route update batching for the algorithms that cannot easily
 apply the routing change without rebuilding. As a result,
 dataplane lookups may return old data until the the sync
 takes place. With the default sync timeout of 50ms, it is
 possible that new binary like ping(8) executed exactly after
 route(8) will still use the old fib data.

To address some aspects of the problem, framework executes
 all rtable changes without RTF_GATEWAY synchronously.

To fix the aforementioned problem, this diff extends sync
 execution for all RTF_STATIC routes (e.g. ones maintained by
 route(8).
This fixes a bunch of tests in the networking space.

Reported by: ci, arichardson
MFC after: 2 weeks
sys/net/route/fib_algo.c