1. 02 1月, 2011 3 次提交
  2. 03 12月, 2010 4 次提交
  3. 21 10月, 2010 2 次提交
    • N
      Revert d88dca79 · db5a753b
      Neil Horman 提交于
      TIPC needs to have its endianess issues fixed.  Unfortunately, the format of a
      subscriber message is passed in directly from user space, so requiring this
      message to be in network byte order breaks user space ABI.  Revert this change
      until such time as we can determine how to do this in a backwards compatible
      manner.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      db5a753b
    • N
      Revert c6537d67 · 8c974438
      Neil Horman 提交于
      Backout the tipc changes to the flags int he subscription message.  These
      changees, while reasonable on the surface, interefere with user space ABI
      compatibility which is a no-no.  This was part of the changes to fix the
      endianess issues in the TIPC protocol, which would be really nice to do but we
      need to do so in a way that is backwards compatible with user space.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8c974438
  4. 17 10月, 2010 1 次提交
  5. 24 9月, 2010 1 次提交
  6. 07 4月, 2010 1 次提交
  7. 09 3月, 2010 1 次提交
    • N
      tipc: fix endianness on tipc subscriber messages · d88dca79
      Neil Horman 提交于
      Remove htohl implementation from tipc
      
      I was working on forward porting the downstream commits for TIPC and ran accross this one:
      http://tipc.cslab.ericsson.net/cgi-bin/gitweb.cgi?p=people/allan/tipc.git;a=commitdiff;h=894279b9437b63cbb02405ad5b8e033b51e4e31e
      
      I was going to just take it, when I looked closer and noted what it was doing.
      This is basically a routine to byte swap fields of data in sent/received packets
      for tipc, dependent upon the receivers guessed endianness of the peer when a
      connection is established.  Asside from just seeming silly to me, it appears to
      violate the latest RFC draft for tipc:
      http://tipc.sourceforge.net/doc/draft-spec-tipc-02.txt
      Which, according to section 4.2 and 4.3.3, requires that all fields of all
      commands be sent in network byte order.  So instead of just taking this patch,
      instead I'm removing the htohl function and replacing the calls with calls to
      ntohl in the rx path and htonl in the send path.
      
      As part of this fix, I'm also changing the subscr_cancel function, which
      searches the list of subscribers, using a memcmp of the entire subscriber list,
      for the entry to tear down.  unfortunately it memcmps the entire tipc_subscr
      structure which has several bits that are private to the local side, so nothing
      will ever match.  section 5.2 of the draft spec indicates the <type,upper,lower>
      tuple should uniquely identify a subscriber, so convert subscr_cancel to just
      match on those fields (properly endian swapped).
      
      I've tested this using the tipc test suite, and its passed without issue.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d88dca79
  8. 30 11月, 2009 1 次提交
  9. 13 8月, 2008 1 次提交
  10. 20 5月, 2008 5 次提交
  11. 13 5月, 2008 1 次提交
  12. 11 2月, 2007 1 次提交
  13. 03 12月, 2006 1 次提交
  14. 19 10月, 2006 1 次提交
  15. 22 7月, 2006 1 次提交
  16. 28 6月, 2006 1 次提交
  17. 26 6月, 2006 1 次提交
  18. 21 3月, 2006 2 次提交
    • 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
  19. 18 1月, 2006 1 次提交
  20. 13 1月, 2006 6 次提交