]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Clean up peer status checking for a received nlri
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 16 Mar 2018 13:12:55 +0000 (09:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 16 Mar 2018 13:12:55 +0000 (09:12 -0400)
commitdc38e9ce001bd8fc0de97f5185bf72fd946ea532
treed11d6457f91ab94d4b677a06c34ffa77effebe37
parent46fe6fd55742c0fb6b2261afac8674a5f7d1979e
bgpd: Clean up peer status checking for a received nlri

In bgp_update_receive the first thing we do is establish
that the peer->status is Established.  We then do a bunch
of work and call bgp_nlri_parse where we break out for
each address family.  Each AFI is then checking for
being peer->status is Established again.  There is no
point in checking this again.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn.c
bgpd/bgp_label.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_route.c