diff options
author | Maria Matejka <mq@ucw.cz> | 2022-08-02 17:51:58 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-08-02 17:51:58 +0200 |
commit | db9153e216b6f1847ac9cdf170b1d14c04552e41 (patch) | |
tree | 6c53bbbf0d3a4a3ad70846aae50995dc184cc5a5 /nest/rt.h | |
parent | 449cd471adfc214c4ec0f0d574818d469b13deec (diff) |
Also next hop update routines are corking themselves when congestion is detected
Diffstat (limited to 'nest/rt.h')
-rw-r--r-- | nest/rt.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -107,6 +107,7 @@ typedef struct rtable { * obstacle from this routing table. */ struct event *rt_event; /* Routing table event */ + struct event *uncork_event; /* Called when uncork happens */ struct timer *prune_timer; /* Timer for periodic pruning / GC */ btime last_rt_change; /* Last time when route changed */ btime base_settle_time; /* Start time of rtable settling interval */ @@ -115,7 +116,9 @@ typedef struct rtable { byte prune_state; /* Table prune state, 1 -> scheduled, 2-> running */ byte prune_trie; /* Prune prefix trie during next table prune */ byte hcu_scheduled; /* Hostcache update is scheduled */ + byte hcu_corked; /* Hostcache update is corked with this state */ byte nhu_state; /* Next Hop Update state */ + byte nhu_corked; /* Next Hop Update is corked with this state */ byte export_used; /* Pending Export pruning is scheduled */ byte cork_active; /* Cork has been activated */ struct rt_cork_threshold cork_threshold; /* Threshold for table cork */ |