1. 11 7月, 2007 1 次提交
  2. 26 4月, 2007 1 次提交
    • A
      [SK_BUFF]: Convert skb->tail to sk_buff_data_t · 27a884dc
      Arnaldo Carvalho de Melo 提交于
      So that it is also an offset from skb->head, reduces its size from 8 to 4 bytes
      on 64bit architectures, allowing us to combine the 4 bytes hole left by the
      layer headers conversion, reducing struct sk_buff size to 256 bytes, i.e. 4
      64byte cachelines, and since the sk_buff slab cache is SLAB_HWCACHE_ALIGN...
      :-)
      
      Many calculations that previously required that skb->{transport,network,
      mac}_header be first converted to a pointer now can be done directly, being
      meaningful as offsets or pointers.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      27a884dc
  3. 11 2月, 2007 1 次提交
  4. 19 10月, 2006 2 次提交
  5. 11 10月, 2006 1 次提交
  6. 26 6月, 2006 11 次提交
  7. 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
  8. 18 1月, 2006 2 次提交
  9. 13 1月, 2006 6 次提交