diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-21 18:43:44 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-21 18:47:43 +0200 |
commit | b1ade5efa1164e42ff62cb0f242774cc9b47886d (patch) | |
tree | 3c7ec96748e1a1f1df056214d2cb21d2538b69c2 /nest/rt.h | |
parent | f51837ace6bfa357f45c6bb5f573fd61a3f1f039 (diff) |
Fixed the export settle timer to be actually a settle timer
Diffstat (limited to 'nest/rt.h')
-rw-r--r-- | nest/rt.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -20,6 +20,7 @@ #include "lib/event.h" #include "lib/rcu.h" #include "lib/io-loop.h" +#include "lib/settle.h" #include <stdatomic.h> @@ -62,8 +63,8 @@ struct rtable_config { byte sorted; /* Routes of network are sorted according to rte_better() */ byte trie_used; /* Rtable has attached trie */ byte debug; /* Whether to log */ - btime export_settle_time; /* Delay before exports are announced */ struct rt_cork_threshold cork_threshold; /* Cork threshold values */ + struct settle_config export_settle; /* Export announcement settler */ }; struct rt_export_hook; @@ -129,7 +130,7 @@ struct rtable_private { * obstacle from this routing table. */ struct event *nhu_uncork_event; /* Helper event to schedule NHU on uncork */ - struct timer *export_timer; /* Timer for export batching */ + struct settle export_settle; /* Export batching settle timer */ struct timer *prune_timer; /* Timer for periodic pruning / GC */ struct birdloop_flag_handler fh; /* Handler for simple events */ btime last_rt_change; /* Last time when route changed */ |