summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-06-11 20:36:42 +0200
committervivek <vivek@cumulusnetworks.com>2016-06-11 20:36:42 +0200
commit6407da5a2484df72169e31339a53b2b3ef62f35f (patch)
treeb86f8fe6545aea24bbf5848345e132d4e1f40aa1 /bgpd/bgp_route.c
parentredhat: Cleanup some unneeded parameters (diff)
downloadfrr-6407da5a2484df72169e31339a53b2b3ef62f35f.tar.xz
frr-6407da5a2484df72169e31339a53b2b3ef62f35f.zip
bgpd: Fixes and updates for VPNv6
VPNv6 changes picked from upstream needed fixes and updates due to some fundamental changes implemented by Cumulus (BGP update-groups, RFC 5549 and nexthop setting etc.) which aren't present upstream. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Updates: 945c8fe, 8ecd326, bb86c60, 93b73df, f4c8985
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 8b39f3a56..3be971e13 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -2997,56 +2997,6 @@ bgp_clear_route_all (struct peer *peer)
bgp_clear_route (peer, afi, safi);
}
-/*
- * Finish freeing things when exiting
- */
-static void
-bgp_drain_workqueue_immediate (struct work_queue *wq)
-{
- if (!wq)
- return;
-
- if (!wq->thread)
- {
- /*
- * no thread implies no queued items
- */
- assert(!wq->items->count);
- return;
- }
-
- while (wq->items->count)
- {
- if (wq->thread)
- thread_cancel(wq->thread);
- work_queue_run(wq->thread);
- }
-}
-
-/*
- * Special function to process clear node queue when bgpd is exiting
- * and the thread scheduler is no longer running.
- */
-void
-bgp_peer_clear_node_queue_drain_immediate(struct peer *peer)
-{
- if (!peer)
- return;
-
- bgp_drain_workqueue_immediate(peer->clear_node_queue);
-}
-
-/*
- * The work queues are not specific to a BGP instance, but the
- * items in them refer to BGP instances, so this should be called
- * before each BGP instance is deleted.
- */
-void
-bgp_process_queues_drain_immediate(void)
-{
- bgp_drain_workqueue_immediate(bm->process_main_queue);
-}
-
void
bgp_clear_adj_in (struct peer *peer, afi_t afi, safi_t safi)
{