diff options
author | Lou Berger <lberger@labn.net> | 2018-09-22 21:02:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 21:02:09 +0200 |
commit | d127c61aebbce56183d17e5631dffac7a11e84bc (patch) | |
tree | b8dee298fa3e49df79593697998fbfbc93d93f28 /bgpd/bgpd.h | |
parent | Merge pull request #3021 from donaldsharp/more_upstream (diff) | |
parent | tools/checkpatch.pl: recognize _Atomic as modifier (diff) | |
download | frr-d127c61aebbce56183d17e5631dffac7a11e84bc.tar.xz frr-d127c61aebbce56183d17e5631dffac7a11e84bc.zip |
Merge pull request #3010 from opensourcerouting/no-frr-thread-id
lib: frr_pthread minor simplification
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r-- | bgpd/bgpd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index ebcb9b5ea..861435c03 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -24,6 +24,7 @@ #include "qobj.h" #include <pthread.h> +#include "frr_pthread.h" #include "lib/json.h" #include "vrf.h" #include "vty.h" @@ -97,6 +98,9 @@ enum bgp_af_index { for (afi = AFI_IP; afi < AFI_MAX; afi++) \ for (safi = SAFI_UNICAST; safi < SAFI_MAX; safi++) +extern struct frr_pthread *bgp_pth_io; +extern struct frr_pthread *bgp_pth_ka; + /* BGP master for system wide configurations and variables. */ struct bgp_master { /* BGP instance list. */ @@ -105,10 +109,6 @@ struct bgp_master { /* BGP thread master. */ struct thread_master *master; -/* BGP pthreads. */ -#define PTHREAD_IO (1 << 1) -#define PTHREAD_KEEPALIVES (1 << 2) - /* work queues */ struct work_queue *process_main_queue; |