diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-09-09 10:26:13 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-09-11 17:46:33 -0400 | 
| commit | 69b8857ab924049c494d76ffde4d6458efe80f14 (patch) | |
| tree | a8ef8958123cd16593a30e2a7ced8ec4418c3028 /bgpd/bgp_route.h | |
| parent | a76a7d1b1266f112f279aef3a544b18409e2ca7a (diff) | |
bgpd: Allow BGP to process certain routes early
There is a need to be able to process certain bgp
routes earlier than others.  Especially when there
is major trauma going on in the network.  Start
the ability for this to happen.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_route.h')
| -rw-r--r-- | bgpd/bgp_route.h | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index bc3ca4b2f8..b6df241181 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -804,10 +804,20 @@ extern void bgp_withdraw(struct peer *peer, const struct prefix *p,  			 int sub_type, struct prefix_rd *prd,  			 mpls_label_t *label, uint8_t num_labels); -/* for bgp_nexthop and bgp_damp */ +/* + * Add a route to be processed for bgp bestpath through the bgp + * workqueue.  This route is added to the end of all other routes + * queued for processing + * + * bgp_process_early adds the route for processing at the beginning + * of the current queue for processing. + */  extern void bgp_process(struct bgp *bgp, struct bgp_dest *dest,  			struct bgp_path_info *pi, afi_t afi, safi_t safi); +extern void bgp_process_early(struct bgp *bgp, struct bgp_dest *dest, +			      struct bgp_path_info *pi, afi_t afi, safi_t safi); +  /*   * Add an end-of-initial-update marker to the process queue. This is just a   * queue element with NULL bgp node.  | 
