1. 01 Oct, 2013 4 commits
  2. 30 Sep, 2013 26 commits
  3. 27 Sep, 2013 3 commits
  4. 24 Sep, 2013 7 commits
    • Cong Wang's avatar
      ipv6: do not allow ipv6 module to be removed · 8ce44061
      Cong Wang authored
      There was some bug report on ipv6 module removal path before.
      Also, as Stephen pointed out, after vxlan module gets ipv6 support,
      the ipv6 stub it used is not safe against this module removal either.
      So, let's just remove inet6_exit() so that ipv6 module will not be
      able to be unloaded.
      
      Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarCong Wang <amwang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8ce44061
    • Eric Dumazet's avatar
      tcp: fix dynamic right sizing · b0983d3c
      Eric Dumazet authored
      Dynamic Right Sizing (DRS) is supposed to open TCP receive window
      automatically, but suffers from two bugs, presented by order
      of importance.
      
      1) tcp_rcv_space_adjust() fix :
      
      Using twice the last received amount is very pessimistic,
      because it doesn't allow fast recovery or proper slow start
      ramp up, if sender wants to increase cwin by 100% every RTT.
      
      copied = bytes received in previous RTT
      
      2*copied = bytes we expect to receive in next RTT
      
      4*copied = bytes we need to advertise in rwin at end of next RTT
      
      DRS is one RTT late, it needs a 4x factor.
      
      If sender is not using ABC, and increases cwin by 50% every rtt,
      then we needed 1.5*1.5 = 2.25 factor.
      This is probably why this bug was not really noticed.
      
      2) There is no window adjustment after first RTT. DRS triggers only
        after the second RTT.
        DRS needs two RTT to initialize, so tcp_fixup_rcvbuf() should setup
        sk_rcvbuf to allow proper window grow for first two RTT.
      
      This patch increases TCP efficiency particularly for large RTT flows
      when autotuning is used at the receiver, and more particularly
      in presence of packet losses.
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarNeal Cardwell <ncardwell@google.com>
      Signed-off-by: default avatarYuchung Cheng <ycheng@google.com>
      Cc: Van Jacobson <vanj@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b0983d3c
    • Florian Westphal's avatar
      tcp: syncookies: reduce mss table to four values · 08629354
      Florian Westphal authored
      Halve mss table size to make blind cookie guessing more difficult.
      This is sad since the tables were already small, but there
      is little alternative except perhaps adding more precise mss information
      in the tcp timestamp.  Timestamps are unfortunately not ubiquitous.
      
      Guessing all possible cookie values still has 8-in 2**32 chance.
      Reported-by: default avatarJakob Lell <jakob@jakoblell.com>
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      08629354
    • Florian Westphal's avatar
      tcp: syncookies: reduce cookie lifetime to 128 seconds · 8c27bd75
      Florian Westphal authored
      We currently accept cookies that were created less than 4 minutes ago
      (ie, cookies with counter delta 0-3).  Combined with the 8 mss table
      values, this yields 32 possible values (out of 2**32) that will be valid.
      
      Reducing the lifetime to < 2 minutes halves the guessing chance while
      still providing a large enough period.
      
      While at it, get rid of jiffies value -- they overflow too quickly on
      32 bit platforms.
      
      getnstimeofday is used to create a counter that increments every 64s.
      perf shows getnstimeofday cost is negible compared to sha_transform;
      normal tcp initial sequence number generation uses getnstimeofday, too.
      Reported-by: default avatarJakob Lell <jakob@jakoblell.com>
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8c27bd75
    • David S. Miller's avatar
      Merge branch 'cpsw' · 61f860c3
      David S. Miller authored
      Mugunthan V N says:
      
      ====================
      This patch series adds the support for configuring GMII_SEL register
      of control module to select the phy mode type and also to configure
      the clock source for RMII phy mode whether to use internal clock or
      the external clock from the phy itself.
      
      Till now CPSW works as this configuration is done in U-Boot and carried
      over to the kernel. But during suspend/resume Control module tends to
      lose its configured value for GMII_SEL register in AM33xx PG1.0, so
      if CPSW is used in RMII or RGMII mode, on resume cpsw is not working
      as GMII_SEL register lost its configuration values.
      
      The initial version of the patch is done by Daniel Mack but as per
      Tony's comment he wants it as a seperate driver as it is done in USB
      control module. I have created a seperate driver for the same.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      61f860c3
    • Mugunthan V N's avatar
      ARM: dts: am33xx: adopt to cpsw-phy-sel driver to configure phy mode · 39ffbd91
      Mugunthan V N authored
      Add DT entries for the phy mode selection in AM33xx SoC using cpsw-phy-sel
      driver.
      Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
      Tested-by: default avatarDaniel Mack <zonque@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      39ffbd91
    • Mugunthan V N's avatar
      drivers: net: cpsw: use cpsw-phy-sel driver to configure phy mode · 388367a5
      Mugunthan V N authored
      Phy mode can be configured via the cpsw-phy-sel driver, this patch enabled the
      cpsw driver to utilise the api provided by the cpsw-phy-sel driver to configure
      the phy mode.
      Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
      Tested-by: default avatarDaniel Mack <zonque@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      388367a5