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_main.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_main.c')
-rw-r--r-- | bgpd/bgp_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 1fac2936e..b4ea45b3e 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -54,6 +54,7 @@ #include "bgpd/bgp_debug.h" #include "bgpd/bgp_filter.h" #include "bgpd/bgp_zebra.h" +#include "bgpd/bgp_packet.h" #ifdef ENABLE_BGP_VNC #include "bgpd/rfapi/rfapi_backend.h" @@ -392,6 +393,9 @@ int main(int argc, char **argv) snprintf(bgpd_di.startinfo, sizeof(bgpd_di.startinfo), ", bgp@%s:%d", (bm->address ? bm->address : "<all>"), bm->port); + pthread_t packet_writes; + pthread_create(&packet_writes, NULL, &peer_writes_start, NULL); + frr_config_fork(); frr_run(bm->master); |