diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-04-18 20:11:43 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-11-30 22:17:59 +0100 |
commit | 56257a44e408b7491090b47e24b22beeb1cfd35e (patch) | |
tree | 7092cbbd51fcdb93b179de8cf73188fb72ccd971 /bgpd/bgp_packet.h | |
parent | bgpd: use new threading infra (diff) | |
download | frr-56257a44e408b7491090b47e24b22beeb1cfd35e.tar.xz frr-56257a44e408b7491090b47e24b22beeb1cfd35e.zip |
bgpd: move bgp i/o to a separate source file
After implement threading, bgp_packet.c was serving the double purpose
of consolidating packet parsing functionality and handling actual I/O
operations. This is somewhat messy and difficult to understand. I've
thus moved all code and data structures for handling threaded packet
writes to bgp_io.[ch].
Although bgp_io.[ch] only handles writes at the moment to keep the noise
on this commit series down, for organization purposes, it's probably
best to move bgp_read() and its trappings into here as well and
restructure that code so that read()'s happen in the pthread and packet
processing happens on the main thread.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_packet.h')
-rw-r--r-- | bgpd/bgp_packet.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h index 2c252012f..d7080d7fb 100644 --- a/bgpd/bgp_packet.h +++ b/bgpd/bgp_packet.h @@ -67,11 +67,6 @@ extern int bgp_packet_set_size(struct stream *s); /* Control variable for write thread. */ extern bool bgp_packet_writes_thread_run; -extern void peer_writes_init(void); -extern void *peer_writes_start(void *arg); -extern void peer_writes_on(struct peer *peer); -extern void peer_writes_off(struct peer *peer); -extern void peer_writes_wake(void); -extern int peer_writes_stop(void **result); +extern int bgp_generate_updgrp_packets(struct thread *); #endif /* _QUAGGA_BGP_PACKET_H */ |