mirror_frr/lib
paul 200df115ea 2005-06-01 Paul Jakma <paul.jakma@sun.com>
* bgpd/(general) refcount struct peer and bgp_info, hence allowing us
	  add work_queues for bgp_process.
	* bgpd/bgp_route.h: (struct bgp_info) Add 'lock' field for refcount.
	  Add bgp_info_{lock,unlock} helper functions.
	  Add bgp_info_{add,delete} helpers, to remove need for
	  users managing locking/freeing of bgp_info and bgp_node's.
	* bgpd/bgp_table.h: (struct bgp_node) Add a flags field, and
	  BGP_NODE_PROCESS_SCHEDULED to merge redundant processing of
	  nodes.
	* bgpd/bgp_fsm.h: Make the ON/OFF/ADD/REMOVE macros lock and unlock
	  peer reference as appropriate.
	* bgpd/bgp_damp.c: Remove its internal prototypes for
	  bgp_info_delete/free. Just use bgp_info_delete.
	* bgpd/bgpd.h: (struct bgp_master) Add work_queue pointers.
	  (struct peer) Add reference count 'lock'
	  (peer_lock,peer_unlock) New helpers to take/release reference
	  on struct peer.
	* bgpd/bgp_advertise.c: (general) Add peer and bgp_info refcounting
	  and balance how references are taken and released.
	  (bgp_advertise_free) release bgp_info reference, if appropriate
	  (bgp_adj_out_free) unlock peer
	  (bgp_advertise_clean) leave the adv references alone, or else
	  call bgp_advertise_free cant unlock them.
	  (bgp_adj_out_set) lock the peer on new adj's, leave the reference
	  alone otherwise. lock the new bgp_info reference.
	  (bgp_adj_in_set) lock the peer reference
	  (bgp_adj_in_remove) and unlock it here
	  (bgp_sync_delete) make hash_free on peer conditional, just in
	  case.
	* bgpd/bgp_fsm.c: (general) document that the timers depend on
	  bgp_event to release a peer reference.
	  (bgp_fsm_change_status) moved up the file, unchanged.
	  (bgp_stop) Decrement peer lock as many times as cancel_event
	  canceled - shouldnt be needed but just in case.
	  stream_fifo_clean of obuf made conditional, just in case.
	  (bgp_event) always unlock the peer, regardless of return value
	  of bgp_fsm_change_status.
	* bgpd/bgp_packet.c: (general) change several bgp_stop's to BGP_EVENT's.
	  (bgp_read) Add a mysterious extra peer_unlock for ACCEPT_PEERs
	  along with a comment on it.
	* bgpd/bgp_route.c: (general) Add refcounting of bgp_info, cleanup
	  some of the resource management around bgp_info. Refcount peer.
	  Add workqueues for bgp_process and clear_table.
	  (bgp_info_new) make static
	  (bgp_info_free) Ditto, and unlock the peer reference.
	  (bgp_info_lock,bgp_info_unlock) new exported functions
	  (bgp_info_add) Add a bgp_info to a bgp_node in correct fashion,
	  taking care of reference counts.
	  (bgp_info_delete) do the opposite of bgp_info_add.
	  (bgp_process_rsclient) Converted into a work_queue work function.
	  (bgp_process_main) ditto.
	  (bgp_processq_del) process work queue item deconstructor
	  (bgp_process_queue_init) process work queue init
	  (bgp_process) call init function if required, set up queue item
	  and add to queue, rather than calling process functions directly.
	  (bgp_rib_remove) let bgp_info_delete manage bgp_info refcounts
	  (bgp_rib_withdraw) ditto
	  (bgp_update_rsclient) let bgp_info_add manage refcounts
	  (bgp_update_main) ditto
	  (bgp_clear_route_node) clear_node_queue work function, does
	  per-node aspects of what bgp_clear_route_table did previously
	  (bgp_clear_node_queue_del) clear_node_queue item delete function
	  (bgp_clear_node_complete) clear_node_queue completion function,
	  it unplugs the process queues, which have to be blocked while
	  clear_node_queue is being processed to prevent a race.
	  (bgp_clear_node_queue_init) init function for clear_node_queue
	  work queues
	  (bgp_clear_route_table) Sets up items onto a workqueue now, rather
	  than clearing each node directly. Plugs both process queues to
	  avoid potential race.
	  (bgp_static_withdraw_rsclient) let bgp_info_{add,delete} manage
	  bgp_info refcounts.
	  (bgp_static_update_rsclient) ditto
	  (bgp_static_update_main) ditto
	  (bgp_static_update_vpnv4) ditto, remove unneeded cast.
	  (bgp_static_withdraw) see bgp_static_withdraw_rsclient
	  (bgp_static_withdraw_vpnv4) ditto
	  (bgp_aggregate_{route,add,delete}) ditto
	  (bgp_redistribute_{add,delete,withdraw}) ditto
	* bgpd/bgp_vty.c: (peer_rsclient_set_vty) lock rsclient list peer
	  reference
	  (peer_rsclient_unset_vty) ditto, but unlock same reference
	* bgpd/bgpd.c: (peer_free) handle frees of info to be kept for lifetime
	  of struct peer.
	  (peer_lock,peer_unlock) peer refcount helpers
	  (peer_new) add initial refcounts
	  (peer_create,peer_create_accept) lock peer as appropriate
	  (peer_delete) unlock as appropriate, move out some free's to
	  peer_free.
	  (peer_group_bind,peer_group_unbind) peer refcounting as
	  appropriate.
	  (bgp_create) check CALLOC return value.
	  (bgp_terminate) free workqueues too.
	* lib/memtypes.c: Add MTYPE_BGP_PROCESS_QUEUE and
	  MTYPE_BGP_CLEAR_NODE_QUEUE
2005-06-01 11:17:05 +00:00
..
.cvsignore - Add .arch-ids and .arch-inventory to cvsignore, to allow one to use arch 2004-11-02 18:59:49 +00:00
buffer.c 2005-04-26 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-04-26 17:14:30 +00:00
buffer.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
ChangeLog 2005-06-01 Paul Jakma <paul.jakma@sun.com> 2005-06-01 11:17:05 +00:00
checksum.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
command.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
command.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
daemon.c 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-01-30 18:49:28 +00:00
distribute.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
distribute.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
filter.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
filter.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
getopt1.c 2005-05-15 Paul Jakma <paul@dishone.st> 2005-05-15 14:25:08 +00:00
getopt.c 2005-05-15 Paul Jakma <paul@dishone.st> 2005-05-15 14:25:08 +00:00
getopt.h 2005-05-15 Paul Jakma <paul@dishone.st> 2005-05-15 14:25:08 +00:00
hash.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
hash.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if_rmap.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if_rmap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
if.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
jhash.c 2004-07-09 Paul Jakma <paul@dishone.st> 2004-07-09 14:05:47 +00:00
jhash.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
keychain.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
keychain.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
linklist.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
linklist.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
log.c 2005-02-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-02-03 19:22:05 +00:00
log.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
Makefile.am 2005-04-25 Paul Jakma <paul.jakma@sun.com> 2005-04-25 16:26:42 +00:00
md5-gnu.h Initial revision 2002-12-13 20:15:29 +00:00
md5.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
memory.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
memory.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
memtypes.awk 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 12:33:58 +00:00
memtypes.c 2005-06-01 Paul Jakma <paul.jakma@sun.com> 2005-06-01 11:17:05 +00:00
memtypes.h 2005-05-24 Paul Jakma <paul@dishone.st> 2005-05-24 09:33:52 +00:00
network.c 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-02-16 16:25:39 +00:00
network.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
pid_output.c 2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2004-12-17 20:50:00 +00:00
plist.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
plist.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
pqueue.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
pqueue.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
prefix.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
prefix.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
privs.c 2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2004-11-20 02:06:59 +00:00
privs.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
regex-gnu.h Initial revision 2002-12-13 20:15:29 +00:00
regex.c 2004-11-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2004-11-24 17:14:49 +00:00
routemap.c 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 12:43:34 +00:00
routemap.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sigevent.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sigevent.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
smux.c 2005-04-07 Paul Jakma <paul.jakma@sun.com> 2005-04-07 07:30:20 +00:00
smux.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sockopt.c 2005-05-07 Yar Tikhiy <yar@comp.chem.msu.su> 2005-05-07 02:22:51 +00:00
sockopt.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
sockunion.c 2005-05-19 Paul Jakma <paul@dishone.st> 2005-05-19 01:37:50 +00:00
sockunion.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
str.c 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-04-02 18:48:39 +00:00
str.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
stream.c 2005-05-03 Paul Jakma <paul@dishone.st> 2005-05-03 09:07:56 +00:00
stream.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
table.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
table.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
thread.c 2005-05-19 Paul Jakma <paul@dishone.st> 2005-05-19 01:30:53 +00:00
thread.h 2005-05-19 Paul Jakma <paul@dishone.st> 2005-05-19 01:30:53 +00:00
vector.c 2005-03-14 Paul Jakma <paul.jakma@sun.com> 2005-03-14 20:19:01 +00:00
vector.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
version.h.in Trying to finish previous commit ... 2005-03-26 14:13:40 +00:00
vty.c 2005-04-27 Andrew J. Schorr <ajschorr@alumni.princeton.edu> 2005-04-28 01:31:13 +00:00
vty.h 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 12:43:34 +00:00
workqueue.c 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 13:42:46 +00:00
workqueue.h 2005-05-23 Paul Jakma <paul@dishone.st> 2005-05-23 13:42:46 +00:00
zassert.h Need RCS Id keyword. 2004-12-03 18:01:04 +00:00
zclient.c 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
zclient.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00
zebra.h 2005-05-06 Paul Jakma <paul@dishone.st> 2005-05-06 21:25:49 +00:00