1. 20 4月, 2012 1 次提交
    • A
      tipc: Update node-scope publications when network address is assigned · 1110b8d3
      Allan Stephens 提交于
      Ensures that node-scope name publications that exist prior to the
      configuration of a node's network address are properly re-initialized
      with that address when it is assigned. TIPC's node-scope publications
      are now tracked using a publications list like the lists used for
      cluster-scope and zone-scope publications so they can be easily updated
      when required.
      
      The inclusion of node scope name publications in a conventional publication
      list means that they must now also be withdrawn, just like cluster and zone
      scope publications are currently withdrawn.  So some conditional tests on
      scope ==/!= TIPC_NODE_SCOPE are inserted/removed accordingly.
      Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      1110b8d3
  2. 25 2月, 2012 3 次提交
  3. 30 12月, 2011 2 次提交
  4. 25 6月, 2011 3 次提交
    • A
      tipc: Eliminate checks for empty zone list during name translation · 8af4638a
      Allan Stephens 提交于
      Gets rid of a pair of checks to see if a name sequence entry in
      TIPC's name table has an empty zone list. These checks are pointless
      since the zone list can never be empty (i.e. as soon as the list
      becomes empty the associated name sequence entry is deleted).
      Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      8af4638a
    • A
      tipc: Convert name table publication lists to standard kernel lists · f6f0a4d2
      Allan Stephens 提交于
      Modifies the main circular linked lists of publications used in TIPC's
      name table to use the standard kernel linked list type. This change
      simplifies the deletion of an existing publication by eliminating
      the need to search up to three lists to locate the publication.
      The use of standard list routines also helps improve the readability
      of the name table code by make it clearer what each list operation
      being performed is actually doing.
      Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      f6f0a4d2
    • A
      tipc: Partition name table instance array info into two parts · b52124a5
      Allan Stephens 提交于
      Modifies the name table array structure that contains the name
      sequence instances for a given name type so that the publication
      lists associated with a given instance are stored in a dynamically
      allocated structure, rather than being embedded within the array
      entry itself. This change is being done for several reasons:
      
      1) It reduces the amount of data that needs to be copied whenever
      a given array is expanded or contracted to accommodate the first
      publication of a new name sequence or the removal of the last
      publication of an existing name sequence.
      
      2) It reduces the amount of memory associated with array entries that
      are currently unused.
      
      3) It facilitates the upcoming conversion of the publication lists
      from TIPC-specific circular lists to standard kernel lists. (Standard
      lists cannot be used with the former array structure because the
      relocation of array entries during array expansion and contraction
      would corrupt the lists.)
      
      Note that, aside from introducing a small amount of code to dynamically
      allocate and free the structure that now holds publication list info,
      this change is largely a simple renaming exercise that replaces
      references to "sseq->LIST" with "sseq->info->LIST" (or "info->LIST").
      Signed-off-by: NAllan Stephens <allan.stephens@windriver.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      b52124a5
  5. 02 1月, 2011 4 次提交
  6. 03 12月, 2010 1 次提交
  7. 14 10月, 2010 1 次提交
  8. 24 9月, 2010 1 次提交
  9. 07 9月, 2010 1 次提交
  10. 18 8月, 2010 1 次提交
  11. 13 5月, 2010 1 次提交
  12. 08 11月, 2008 1 次提交
  13. 15 7月, 2008 2 次提交
  14. 05 6月, 2008 2 次提交
  15. 13 5月, 2008 1 次提交
  16. 03 8月, 2007 1 次提交
  17. 20 7月, 2007 1 次提交
  18. 11 2月, 2007 1 次提交
  19. 22 7月, 2006 1 次提交
  20. 28 6月, 2006 1 次提交
  21. 26 6月, 2006 3 次提交
  22. 21 3月, 2006 3 次提交
    • A
      [TIPC]: Cleanups · 988f088a
      Adrian Bunk 提交于
      This patch contains the following possible cleanups:
      - make needlessly global code static
      - #if 0 the following unused global functions:
        - name_table.c: tipc_nametbl_print()
        - name_table.c: tipc_nametbl_dump()
        - net.c: tipc_net_next_node()
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NPer Liden <per.liden@ericsson.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      988f088a
    • S
      [TIPC]: Remove inlines from *.c · 05790c64
      Sam Ravnborg 提交于
      With reference to latest discussions on linux-kernel with respect to
      inline here is a patch for tipc to remove all inlines as used in
      the .c files. See also chapter 14 in Documentation/CodingStyle.
      
      Before:
         text        data     bss     dec     hex filename
       102990        5292    1752  110034   1add2 tipc.o
      
      Now:
         text        data     bss     dec     hex filename
       101190        5292    1752  108234   1a6ca tipc.o
      
      This is a nice text size reduction which will improve icache usage.
      In some cases bigger (> 4 lines) functions where declared inline
      and used in many places, they are most probarly no longer inlined by gcc
      resulting in the size reduction.
      There are several one liners that no longer are declared inline, but gcc
      should inline these just fine without the inline hint.
      
      With this patch applied one warning is added about an unused static
      function - that was hidded by utilising inline before.
      The function in question were kept so this patch is solely a
      inline removal patch.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NPer Liden <per.liden@ericsson.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      05790c64
    • S
      [TIPC]: Fix simple sparse warnings · 1fc54d8f
      Sam Ravnborg 提交于
      Tried to run the new tipc stack through sparse.
      Following patch fixes all cases where 0 was used
      as replacement of NULL.
      Use NULL to document this is a pointer and to silence sparse.
      
      This brough sparse warning count down with 127 to 24 warnings.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NPer Liden <per.liden@ericsson.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1fc54d8f
  23. 18 1月, 2006 1 次提交
  24. 13 1月, 2006 3 次提交