summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-26 12:09:14 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-26 12:09:14 +0200
commit6cfe2066ab024251936b119ab5c39a3892d8342a (patch)
tree2978b830b3deba0187ac7a6007bd6003b2f8e1d9 /nest/rt.h
parentecaa3df3c4b090cceac4494658f80eb0a0b1e8b6 (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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/rt.h b/nest/rt.h
index d53f54e1..6ee2ce9b 100644
--- a/nest/rt.h
+++ b/nest/rt.h
@@ -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 */