1. 14 3月, 2011 4 次提交
    • A
      tipc: Optimizations to link creation code · 37b9c08a
      Allan Stephens 提交于
      Enhances link creation code as follows:
      
      1) Detects illegal attempts to add a requested link earlier in the
         link creation process. This prevents TIPC from wasting time
         initializing a link object it then throws away, and also eliminates
         the code needed to do the throwing away.
      
      2) Passes in the node object associated with the requested link.
         This allows TIPC to eliminate a search to locate the node object,
         as well as code that attempted to create the node if it doesn't
         exist.
      Signed-off-by: NAllan Stephens <Allan.Stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      37b9c08a
    • P
      tipc: cosmetic - function names are not to be full sentences · 8f19afb2
      Paul Gortmaker 提交于
      Function names like "tipc_node_has_redundant_links" are unweildy
      and result in long lines even for simple lines.  The "has" doesn't
      contribute any value add, so dropping that is a slight step in the
      right direction.   This is a cosmetic change, basic result of:
      
      for i in `grep -l tipc_node_has_ *` ; do sed -i s/tipc_node_has_/tipc_node_/ $i ; done
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      8f19afb2
    • A
      tipc: Convert node object array to a hash table · 672d99e1
      Allan Stephens 提交于
      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: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      672d99e1
    • A
      tipc: Split up unified structure of network-related variables · d1bcb115
      Allan Stephens 提交于
      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: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      d1bcb115
  2. 02 1月, 2011 3 次提交
  3. 17 10月, 2010 1 次提交
  4. 18 8月, 2010 1 次提交
  5. 03 9月, 2008 1 次提交
  6. 11 2月, 2007 1 次提交
  7. 26 6月, 2006 1 次提交
  8. 21 3月, 2006 1 次提交
  9. 18 1月, 2006 1 次提交
  10. 13 1月, 2006 4 次提交