diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-02-07 00:39:06 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-11-30 22:17:57 +0100 |
commit | d3ecc69e5fba1873872a1f4dc359ff1934f81848 (patch) | |
tree | bcdf393161c7f7ca5e8fffbb1208362904bb80a6 /bgpd/bgp_updgrp_adv.c | |
parent | Merge pull request #1493 from donaldsharp/plist_stuff (diff) | |
download | frr-d3ecc69e5fba1873872a1f4dc359ff1934f81848.tar.xz frr-d3ecc69e5fba1873872a1f4dc359ff1934f81848.zip |
bgpd: move packet writes into dedicated pthread
* BGP_WRITE_ON() removed
* BGP_WRITE_OFF() removed
* peer_writes_on() added
* peer_writes_off() added
* bgp_write_proceed_actions() removed
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r-- | bgpd/bgp_updgrp_adv.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c index b4f18c9f5..1ec9915ee 100644 --- a/bgpd/bgp_updgrp_adv.c +++ b/bgpd/bgp_updgrp_adv.c @@ -483,7 +483,6 @@ void bgp_adj_out_unset_subgroup(struct bgp_node *rn, { struct bgp_adj_out *adj; struct bgp_advertise *adv; - char trigger_write; if (DISABLE_BGP_ANNOUNCE) return; @@ -501,20 +500,9 @@ void bgp_adj_out_unset_subgroup(struct bgp_node *rn, adv->rn = rn; adv->adj = adj; - /* Note if we need to trigger a packet write */ - if (BGP_ADV_FIFO_EMPTY(&subgrp->sync->withdraw)) - trigger_write = 1; - else - trigger_write = 0; - /* Add to synchronization entry for withdraw * announcement. */ BGP_ADV_FIFO_ADD(&subgrp->sync->withdraw, &adv->fifo); - - /* Schedule packet write, if FIFO is getting its first - * entry. */ - if (trigger_write) - subgroup_trigger_write(subgrp); } else { /* Remove myself from adjacency. */ BGP_ADJ_OUT_DEL(rn, adj); |