1. 07 5月, 2012 1 次提交
    • A
      skb: Drop bad code from pskb_expand_head · 9202e31d
      Alexander Duyck 提交于
      The fast-path for pskb_expand_head contains a check where the size plus the
      unaligned size of skb_shared_info is compared against the size of the data
      buffer.  This code path has two issues.  First is the fact that after the
      recent changes by Eric Dumazet to __alloc_skb and build_skb the shared info
      is always placed in the optimal spot for a buffer size making this check
      unnecessary.  The second issue is the fact that the check doesn't take into
      account the aligned size of shared info.  As a result the code burns cycles
      doing a memcpy with nothing actually being shifted.
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@intel.com>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9202e31d
  2. 05 5月, 2012 1 次提交
    • E
      tcp: be more strict before accepting ECN negociation · bd14b1b2
      Eric Dumazet 提交于
      It appears some networks play bad games with the two bits reserved for
      ECN. This can trigger false congestion notifications and very slow
      transferts.
      
      Since RFC 3168 (6.1.1) forbids SYN packets to carry CT bits, we can
      disable TCP ECN negociation if it happens we receive mangled CT bits in
      the SYN packet.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Perry Lorier <perryl@google.com>
      Cc: Matt Mathis <mattmathis@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Cc: Wilmer van der Gaast <wilmer@google.com>
      Cc: Ankur Jain <jankur@google.com>
      Cc: Tom Herbert <therbert@google.com>
      Cc: Dave Täht <dave.taht@bufferbloat.net>
      Acked-by: NNeal Cardwell <ncardwell@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bd14b1b2
  3. 04 5月, 2012 19 次提交
  4. 03 5月, 2012 19 次提交