1. 18 Nov, 2011 6 commits
    • Herbert Xu's avatar
      net: Remove LL_ALLOCATED_SPACE · 56c978f1
      Herbert Xu authored
      net: Remove LL_ALLOCATED_SPACE
      
      The macro LL_ALLOCATED_SPACE was ill-conceived.  It applies the
      alignment to the sum of needed_headroom and needed_tailroom.  As
      the amount that is then reserved for head room is needed_headroom
      with alignment, this means that the tail room left may be too small.
      
      Now that all uses of LL_ALLOCATED_SPACE have been removed, this
      patch finally removes the macro itself.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      56c978f1
    • Herbert Xu's avatar
      net: Remove all uses of LL_ALLOCATED_SPACE · ae641949
      Herbert Xu authored
      net: Remove all uses of LL_ALLOCATED_SPACE
      
      The macro LL_ALLOCATED_SPACE was ill-conceived.  It applies the
      alignment to the sum of needed_headroom and needed_tailroom.  As
      the amount that is then reserved for head room is needed_headroom
      with alignment, this means that the tail room left may be too small.
      
      This patch replaces all uses of LL_ALLOCATED_SPACE with the macro
      LL_RESERVED_SPACE and direct reference to needed_tailroom.
      
      This also fixes the problem with needed_headroom changing between
      allocating the skb and reserving the head room.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ae641949
    • Herbert Xu's avatar
      ipv6: Remove all uses of LL_ALLOCATED_SPACE · a7ae1992
      Herbert Xu authored
      ipv6: Remove all uses of LL_ALLOCATED_SPACE
      
      The macro LL_ALLOCATED_SPACE was ill-conceived.  It applies the
      alignment to the sum of needed_headroom and needed_tailroom.  As
      the amount that is then reserved for head room is needed_headroom
      with alignment, this means that the tail room left may be too small.
      
      This patch replaces all uses of LL_ALLOCATED_SPACE in net/ipv6
      with the macro LL_RESERVED_SPACE and direct reference to
      needed_tailroom.
      
      This also fixes the problem with needed_headroom changing between
      allocating the skb and reserving the head room.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a7ae1992
    • Herbert Xu's avatar
      ipv4: Remove all uses of LL_ALLOCATED_SPACE · 66088243
      Herbert Xu authored
      ipv4: Remove all uses of LL_ALLOCATED_SPACE
      
      The macro LL_ALLOCATED_SPACE was ill-conceived.  It applies the
      alignment to the sum of needed_headroom and needed_tailroom.  As
      the amount that is then reserved for head room is needed_headroom
      with alignment, this means that the tail room left may be too small.
      
      This patch replaces all uses of LL_ALLOCATED_SPACE in net/ipv4
      with the macro LL_RESERVED_SPACE and direct reference to
      needed_tailroom.
      
      This also fixes the problem with needed_headroom changing between
      allocating the skb and reserving the head room.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      66088243
    • david decotigny's avatar
      net-forcedeth: fix possible stats inaccuracies on 32b hosts · 505a467b
      david decotigny authored
      The software stats are updated from BH, this change ensures that 32b
      UP hosts use appropriate protection.
      
      Tested:
        - HW/SW stats consistent with pktgen (in particular tx=rx)
        - HW/SW stats consistent when tx/rx offloads disabled
        - no problem with+without lockdep (SMP 16-way)
      Signed-off-by: default avatarDavid Decotigny <david.decotigny@google.com>
      Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      505a467b
    • Eric Dumazet's avatar
      bnx2: switch to build_skb() infrastructure · dd2bc8e9
      Eric Dumazet authored
      This is very similar to bnx2x conversion, but bnx2 only requires 16bytes
      alignement at start of the received frame to store its l2_fhdr, so goal
      was not to reduce skb truesize (in fact it should not change after this
      patch)
      
      Using build_skb() reduces cache line misses in the driver, since we
      use cache hot skb instead of cold ones. Number of in-flight sk_buff
      structures is lower, they are more likely recycled in SLUB caches
      while still hot.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      CC: Michael Chan <mchan@broadcom.com>
      CC: Eilon Greenstein <eilong@broadcom.com>
      Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      dd2bc8e9
  2. 17 Nov, 2011 21 commits
  3. 16 Nov, 2011 13 commits