diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-26 12:09:14 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-26 12:09:14 +0200 |
commit | 6cfe2066ab024251936b119ab5c39a3892d8342a (patch) | |
tree | 2978b830b3deba0187ac7a6007bd6003b2f8e1d9 /nest/rt.h | |
parent | ecaa3df3c4b090cceac4494658f80eb0a0b1e8b6 (diff) |
Higher export settle times when route refresh is running.
This helps the route refresh procedures to finish or at least
do more work before the exporters jump in and steal all the CPU time
for themselves.
Diffstat (limited to 'nest/rt.h')
-rw-r--r-- | nest/rt.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -65,6 +65,8 @@ struct rtable_config { byte debug; /* Whether to log */ struct rt_cork_threshold cork_threshold; /* Cork threshold values */ struct settle_config export_settle; /* Export announcement settler */ + struct settle_config export_rr_settle;/* Export announcement settler config valid when any + route refresh is running */ }; struct rt_export_hook; @@ -136,6 +138,9 @@ struct rtable_private { btime last_rt_change; /* Last time when route changed */ btime gc_time; /* Time of last GC */ uint gc_counter; /* Number of operations since last GC */ + uint rr_counter; /* Number of currently running route refreshes, + in fact sum of (stale_set - stale_pruned) over all importers + + one for each TIS_FLUSHING importer */ byte prune_state; /* Table prune state, 1 -> scheduled, 2-> running */ byte prune_trie; /* Prune prefix trie during next table prune */ byte nhu_state; /* Next Hop Update state */ |