]> git.proxmox.com Git - mirror_frr.git/commit
[bgpd] simplify peer refcounts, squash slow peer leak
authorPaul Jakma <paul.jakma@sun.com>
Thu, 14 Sep 2006 03:02:02 +0000 (03:02 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 14 Sep 2006 03:02:02 +0000 (03:02 +0000)
commit9fde6624fc480995449d8243fe85602d89927eb6
tree6591e476329ec88bd9ba5fcc008c626d32b3fdb5
parentca058a30b1ea57f83871ab4cf1c9a91ea4064d52
[bgpd] simplify peer refcounts, squash slow peer leak

2006-09-14 Paul Jakma <paul.jakma@sun.com>

* (general) fix the peer refcount issue exposed by previous, by
  just removing refcounting of peer threads, which is mostly
  senseless as they're references leading from struct peer,
  which peer_free cancels anyway. No need to muck around..
* bgp_fsm.h: Just remove the refcounting from the various
  TIMER/READ/WRITE/EVENT ON/OFF/ADD macros.
* bgp_fsm.c: (bgp_stop) use BGP_EVENT_FLUSH, no refcounts attached
  to events anymore.
  (bgp_event) remove peer_unlock, events not refcounted.
* bgpd.c: (peer_free) flush events before free.
bgpd/ChangeLog
bgpd/bgp_fsm.c
bgpd/bgp_fsm.h
bgpd/bgpd.c