git: hammer2 hammer2 - SPAN protocol work, router work

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 8 23:28:10 PDT 2012


commit 29ead430388b5bba37da0a913a4f54a4ba126227
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 8 23:25:23 2012 -0700

    hammer2 - SPAN protocol work, router work
    
    * Fix SPAN relay sort and sequencing bugs.
    
    * Start reworking the APIs to accomodate routed messages.  Start by
      creating a hammer2_router structure and adjusting most of the msg
      functions to pass it instead of the iocom.
    
    * Fix hammer2_state races by moving the state allocation to
      hammer2_msg_alloc() instead of hammer2_msg_write(). This gives
      code a chance to assign the state->any.* field without having to
      worry about the state getting ripped out from under us.

Summary of changes:
 sbin/hammer2/TODO          |    9 ++
 sbin/hammer2/cmd_debug.c   |   70 ++++++------
 sbin/hammer2/cmd_service.c |   48 +++++----
 sbin/hammer2/hammer2.h     |   37 +++---
 sbin/hammer2/msg.c         |  261 ++++++++++++++++++++++++--------------------
 sbin/hammer2/msg_lnk.c     |  191 ++++++++++++++++++++++++--------
 sbin/hammer2/network.h     |   32 ++++--
 7 files changed, 403 insertions(+), 245 deletions(-)
 create mode 100644 sbin/hammer2/TODO

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29ead430388b5bba37da0a913a4f54a4ba126227


-- 
DragonFly BSD source repository





More information about the Commits mailing list