1. 19 5月, 2012 3 次提交
    • E
      ipv6: remove csummode in ip6_append_data() · d7f7c0ac
      Eric Dumazet 提交于
      csummode variable is always CHECKSUM_NONE in ip6_append_data()
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d7f7c0ac
    • E
      net: introduce netdev_alloc_frag() · 6f532612
      Eric Dumazet 提交于
      Fix two issues introduced in commit a1c7fff7
      ( net: netdev_alloc_skb() use build_skb() )
      
      - Must be IRQ safe (non NAPI drivers can use it)
      - Must not leak the frag if build_skb() fails to allocate sk_buff
      
      This patch introduces netdev_alloc_frag() for drivers willing to
      use build_skb() instead of __netdev_alloc_skb() variants.
      
      Factorize code so that :
      __dev_alloc_skb() is a wrapper around __netdev_alloc_skb(), and
      dev_alloc_skb() a wrapper around netdev_alloc_skb()
      
      Use __GFP_COLD flag.
      
      Almost all network drivers now benefit from skb->head_frag
      infrastructure.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f532612
    • E
      iwlwifi: dont pull too much payload in skb head · 56138f50
      Eric Dumazet 提交于
      As iwlwifi use fat skbs, it should not pull too much data in skb->head,
      and particularly no tcp data payload, or splice() is slower, and TCP
      coalescing is disabled. Copying payload to userland also involves at
      least two copies (part from header, part from fragment)
      
      Each layer will pull its header from the fragment as needed.
      
      (on 64bit arches, skb_tailroom(skb) at this point is 192 bytes)
      
      With this patch applied, I have a major reduction of collapsed/pruned
      TCP packets, a nice increase of TCPRcvCoalesce counter, and overall
      better Internet User experience.
      
      Small packets are still using a fragless skb, so that page can be reused
      by the driver.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      56138f50
  2. 18 5月, 2012 15 次提交
  3. 17 5月, 2012 22 次提交