1. 20 8月, 2012 1 次提交
  2. 14 7月, 2012 2 次提交
    • E
      tipc: phase out most of the struct print_buf usage · dc1aed37
      Erik Hugne 提交于
      The tipc_printf is renamed to tipc_snprintf, as the new name
      describes more what the function actually does.  It is also
      changed to take a buffer and length parameter and return
      number of characters written to the buffer.  All callers of
      this function that used to pass a print_buf are updated.
      
      Final removal of the struct print_buf itself will be done
      synchronously with the pending removal of the deprecated
      logging code that also was using it.
      
      Functions that build up a response message with a list of
      ports, nametable contents etc. are changed to return the number
      of characters written to the output buffer. This information
      was previously hidden in a field of the print_buf struct, and
      the number of chars written was fetched with a call to
      tipc_printbuf_validate.  This function is removed since it
      is no longer referenced nor needed.
      
      A generic max size ULTRA_STRING_MAX_LEN is defined, named
      in keeping with the existing TIPC_TLV_ULTRA_STRING, and the
      various definitions in port, link and nametable code that
      largely duplicated this information are removed.  This means
      that amount of link statistics that can be returned is now
      increased from 2k to 32k.
      
      The buffer overflow check is now done just before the reply
      message is passed over netlink or TIPC to a remote node and
      the message indicating a truncated buffer is changed to a less
      dramatic one (less CAPS), placed at the end of the message.
      Signed-off-by: NErik Hugne <erik.hugne@ericsson.com>
      Signed-off-by: NJon Maloy <jon.maloy@ericsson.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      dc1aed37
    • E
      tipc: use standard printk shortcut macros (pr_err etc.) · 2cf8aa19
      Erik Hugne 提交于
      All messages should go directly to the kernel log.  The TIPC
      specific error, warning, info and debug trace macro's are
      removed and all references replaced with pr_err, pr_warn,
      pr_info and pr_debug.
      
      Commonly used sub-strings are explicitly declared as a const
      char to reduce .text size.
      
      Note that this means the debug messages (changed to pr_debug),
      are now enabled through dynamic debugging, instead of a TIPC
      specific Kconfig option (TIPC_DEBUG).  The latter will be
      phased out completely
      Signed-off-by: NErik Hugne <erik.hugne@ericsson.com>
      Signed-off-by: NJon Maloy <jon.maloy@ericsson.com>
      [PG: use pr_fmt as suggested by Joe Perches <joe@perches.com>]
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      2cf8aa19
  3. 12 7月, 2012 1 次提交
  4. 11 7月, 2012 1 次提交
  5. 01 5月, 2012 1 次提交
    • P
      tipc: compress out gratuitous extra carriage returns · 617d3c7a
      Paul Gortmaker 提交于
      Some of the comment blocks are floating in limbo between two
      functions, or between blocks of code.  Delete the extra line
      feeds between any comment and its associated following block
      of code, to be consistent with the majority of the rest of
      the kernel.  Also delete trailing newlines at EOF and fix
      a couple trivial typos in existing comments.
      
      This is a 100% cosmetic change with no runtime impact.  We get
      rid of over 500 lines of non-code, and being blank line deletes,
      they won't even show up as noise in git blame.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      617d3c7a
  6. 27 4月, 2012 2 次提交
  7. 20 4月, 2012 4 次提交
  8. 25 2月, 2012 3 次提交
  9. 30 12月, 2011 2 次提交
  10. 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
  11. 02 1月, 2011 4 次提交
  12. 03 12月, 2010 1 次提交
  13. 14 10月, 2010 1 次提交
  14. 24 9月, 2010 1 次提交
  15. 07 9月, 2010 1 次提交
  16. 18 8月, 2010 1 次提交
  17. 13 5月, 2010 1 次提交
  18. 08 11月, 2008 1 次提交
  19. 15 7月, 2008 2 次提交
  20. 05 6月, 2008 2 次提交
  21. 13 5月, 2008 1 次提交
  22. 03 8月, 2007 1 次提交
  23. 20 7月, 2007 1 次提交
  24. 11 2月, 2007 1 次提交
  25. 22 7月, 2006 1 次提交