]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_io.c
bgpd: move bgp i/o to a separate source file
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 18 Apr 2017 18:11:43 +0000 (18:11 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 30 Nov 2017 21:17:59 +0000 (16:17 -0500)
commit56257a44e408b7491090b47e24b22beeb1cfd35e
tree7092cbbd51fcdb93b179de8cf73188fb72ccd971
parent0ca8b79f38c697c0c159518245f3bdb217157944
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>
bgpd/Makefile.am
bgpd/bgp_fsm.c
bgpd/bgp_io.c [new file with mode: 0644]
bgpd/bgp_io.h [new file with mode: 0644]
bgpd/bgp_packet.c
bgpd/bgp_packet.h
bgpd/bgpd.c
bgpd/bgpd.h