1. 03 Nov, 2008 1 commit
  2. 31 Oct, 2008 1 commit
  3. 29 Oct, 2008 2 commits
  4. 07 Oct, 2008 1 commit
  5. 25 Jul, 2008 1 commit
  6. 16 Jul, 2008 1 commit
  7. 03 Jul, 2008 1 commit
    • Pavel Emelyanov's avatar
      tcp: de-bloat a bit with factoring NET_INC_STATS_BH out · 40b215e5
      Pavel Emelyanov authored
      There are some places in TCP that select one MIB index to
      bump snmp statistics like this:
      	if (<something>)
      	else if (<something_else>)
      or in a more tricky but still similar way.
      On the other hand, this NET_INC_STATS_BH is a camouflaged
      increment of percpu variable, which is not that small.
      Factoring those cases out de-bloats 235 bytes on non-preemptible
      i386 config and drives parts of the code into 80 columns.
      add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-235 (-235)
      function                                     old     new   delta
      tcp_fastretrans_alert                       1437    1424     -13
      tcp_dsack_set                                137     124     -13
      tcp_xmit_retransmit_queue                    690     676     -14
      tcp_try_undo_recovery                        283     265     -18
      tcp_sacktag_write_queue                     1550    1515     -35
      tcp_update_reordering                        162     106     -56
      tcp_retransmit_timer                         990     904     -86
      Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  8. 12 Jun, 2008 1 commit
    • David S. Miller's avatar
      tcp: Revert 'process defer accept as established' changes. · ec0a1966
      David S. Miller authored
      This reverts two changesets, ec3c0982
      ("[TCP]: TCP_DEFER_ACCEPT updates - process as established") and
      the follow-on bug fix 9ae27e0a
      ("tcp: Fix slab corruption with ipv6 and tcp6fuzz").
      This change causes several problems, first reported by Ingo Molnar
      as a distcc-over-loopback regression where connections were getting
      Ilpo Järvinen first spotted the locking problems.  The new function
      added by this code, tcp_defer_accept_check(), only has the
      child socket locked, yet it is modifying state of the parent
      listening socket.
      Fixing that is non-trivial at best, because we can't simply just grab
      the parent listening socket lock at this point, because it would
      create an ABBA deadlock.  The normal ordering is parent listening
      socket --> child socket, but this code path would require the
      reverse lock ordering.
      Next is a problem noticed by Vitaliy Gusev, he noted:
      >--- a/net/ipv4/tcp_timer.c
      >+++ b/net/ipv4/tcp_timer.c
      >@@ -481,6 +481,11 @@ static void tcp_keepalive_timer (unsigned long data)
      > 		goto death;
      > 	}
      >+	if (tp->defer_tcp_accept.request && sk->sk_state == TCP_ESTABLISHED) {
      >+		tcp_send_active_reset(sk, GFP_ATOMIC);
      >+		goto death;
      Here socket sk is not attached to listening socket's request queue. tcp_done()
      will not call inet_csk_destroy_sock() (and tcp_v4_destroy_sock() which should
      release this sk) as socket is not DEAD. Therefore socket sk will be lost for
      Finally, Alexey Kuznetsov argues that there might not even be any
      real value or advantage to these new semantics even if we fix all
      of the bugs:
      Hiding from accept() sockets with only out-of-order data only
      is the only thing which is impossible with old approach. Is this really
      so valuable? My opinion: no, this is nothing but a new loophole
      to consume memory without control.
      So revert this thing for now.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  9. 11 Jun, 2008 1 commit
  10. 14 Apr, 2008 2 commits
  11. 21 Mar, 2008 1 commit
    • Patrick McManus's avatar
      [TCP]: TCP_DEFER_ACCEPT updates - process as established · ec3c0982
      Patrick McManus authored
      Change TCP_DEFER_ACCEPT implementation so that it transitions a
      connection to ESTABLISHED after handshake is complete instead of
      leaving it in SYN-RECV until some data arrvies. Place connection in
      accept queue when first data packet arrives from slow path.
        - established connection is now reset if it never makes it
         to the accept queue
       - diagnostic state of established matches with the packet traces
         showing completed handshake
       - TCP_DEFER_ACCEPT timeouts are expressed in seconds and can now be
         enforced with reasonable accuracy instead of rounding up to next
         exponential back-off of syn-ack retry.
      Signed-off-by: default avatarPatrick McManus <mcmanus@ducksong.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  12. 28 Jan, 2008 5 commits
  13. 10 Oct, 2007 1 commit
    • Ilpo Järvinen's avatar
      [TCP]: Move sack_ok access to obviously named funcs & cleanup · e60402d0
      Ilpo Järvinen authored
      Previously code had IsReno/IsFack defined as macros that were
      local to tcp_input.c though sack_ok field has user elsewhere too
      for the same purpose. This changes them to static inlines as
      preferred according the current coding style and unifies the
      access to sack_ok across multiple files. Magic bitops of sack_ok
      for FACK and DSACK are also abstracted to functions with
      appropriate names.
      - One sack_ok = 1 remains but that's self explanary, i.e., it
        enables sack
      - Couple of !IsReno cases are changed to tcp_is_sack
      - There were no users for IsDSack => I dropped it
      Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  14. 07 Jun, 2007 1 commit
  15. 31 May, 2007 1 commit
  16. 25 Apr, 2007 1 commit
  17. 11 Feb, 2007 1 commit
  18. 02 Dec, 2006 1 commit
  19. 22 Sep, 2006 1 commit
  20. 20 Mar, 2006 1 commit
  21. 10 Nov, 2005 1 commit
  22. 29 Aug, 2005 5 commits
  23. 08 Jul, 2005 1 commit
  24. 18 Jun, 2005 4 commits
  25. 05 May, 2005 1 commit
  26. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      Let it rip!