1. 13 Mar, 2011 4 commits
    • Allan Stephens's avatar
      tipc: manually inline net_start/stop, make assoc. vars static · 34e46258
      Allan Stephens authored
      Relocates network-related variables into the subsystem files where
      they are now primarily used (following the recent rework of TIPC's
      node table), and converts globals into locals where possible. Changes
      the initialization of tipc_num_links from run-time to compile-time,
      and eliminates the net_start routine that becomes empty as a result.
      Also eliminates the corresponding net_stop routine by moving its
      (trivial) content into the one location that called the routine.
      Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      34e46258
    • Allan Stephens's avatar
      tipc: Convert node object array to a hash table · 672d99e1
      Allan Stephens authored
      Replaces the dynamically allocated array of pointers to the cluster's
      node objects with a static hash table. Hash collisions are resolved
      using chaining, with a typical hash chain having only a single node,
      to avoid degrading performance during processing of incoming packets.
      The conversion to a hash table reduces the memory requirements for
      TIPC's node table to approximately the same size it had prior to
      the previous commit.
      
      In addition to the hash table itself, TIPC now also maintains a
      linked list for the node objects, sorted by ascending network address.
      This list allows TIPC to continue sending responses to user space
      applications that request node and link information in sorted order.
      The list also improves performance when name table update messages are
      sent by making it easier to identify the nodes that must be notified.
      Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      672d99e1
    • Allan Stephens's avatar
      tipc: Split up unified structure of network-related variables · d1bcb115
      Allan Stephens authored
      Converts the fields of the global "tipc_net" structure into individual
      variables.  Since the struct was never referenced as a complete unit,
      its existence was pointless.  This will facilitate upcoming changes to
      TIPC's node table and simpify upcoming relocation of the variables so
      they are only visible to the files that actually use them.
      
      This change is essentially cosmetic in nature, and doesn't affect the
      operation of TIPC.
      Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      d1bcb115
    • Allan Stephens's avatar
      tipc: Fix problem with missing link in "tipc-config -l" output · 9df3b7eb
      Allan Stephens authored
      Removes a race condition that could cause TIPC's internal counter
      of the number of links it has to neighboring nodes to have the
      incorrect value if two independent threads of control simultaneously
      create new link endpoints connecting to two different nodes using two
      different bearers. Such under counting would result in TIPC failing to
      list the final link(s) in its response to a configuration request to
      list all of the node's links. The counter is now updated atomically
      to ensure that simultaneous increments do not interfere with each
      other.
      
      Thanks go to Peter Butler <pbutler@pt.com> for his assistance in
      diagnosing and fixing this problem.
      Signed-off-by: default avatarAllan Stephens <Allan.Stephens@windriver.com>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      9df3b7eb
  2. 01 Jan, 2011 3 commits
  3. 03 Sep, 2008 1 commit
  4. 21 May, 2008 1 commit
  5. 11 Feb, 2007 1 commit
  6. 17 Jan, 2006 1 commit
  7. 12 Jan, 2006 4 commits