]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_fsm.c
bgpd: transfer packets from peer stub to actual peer
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 6 Apr 2017 01:09:33 +0000 (01:09 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 30 Nov 2017 21:17:58 +0000 (16:17 -0500)
commit727c4f870b0e6079b761afc525f6a1f5262bcf9f
tree598af118c1f7476f7efd05ca7721f16336a099e1
parent2bb745fe0257f95a451a195830f0046440767025
bgpd: transfer packets from peer stub to actual peer

During transition from OpenConfirm -> Established, we wipe the peer stub's
output buffer. Because thread.c prioritizes I/O operations over regular
background threads and events, in a single threaded environment this ordering
meant that the output buffer would be happily empty at wipe time.  In MT-land,
this convenient coincidence is no longer true; thus we need to make sure that
any packets remaining on the peer stub get transferred over to the peer proper.

Also removes misleading comment indicating that bgp_establish() sends a
keepalive packet. It does not.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_fsm.c