1. 29 1月, 2008 11 次提交
  2. 05 12月, 2007 1 次提交
  3. 23 11月, 2007 2 次提交
  4. 20 11月, 2007 1 次提交
  5. 12 10月, 2007 1 次提交
  6. 11 10月, 2007 16 次提交
  7. 19 7月, 2007 1 次提交
  8. 11 7月, 2007 1 次提交
  9. 09 5月, 2007 1 次提交
  10. 30 4月, 2007 1 次提交
  11. 29 4月, 2007 1 次提交
  12. 26 4月, 2007 3 次提交
    • S
      [TCP]: Congestion control API update. · 164891aa
      Stephen Hemminger 提交于
      Do some simple changes to make congestion control API faster/cleaner.
      * use ktime_t rather than timeval
      * merge rtt sampling into existing ack callback
        this means one indirect call versus two per ack.
      * use flags bits to store options/settings
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      164891aa
    • I
      [TCP]: Sed magic converts func(sk, tp, ...) -> func(sk, ...) · 9e412ba7
      Ilpo Järvinen 提交于
      This is (mostly) automated change using magic:
      
      sed -e '/struct sock \*sk/ N' -e '/struct sock \*sk/ N'
          -e '/struct sock \*sk/ N' -e '/struct sock \*sk/ N'
          -e 's|struct sock \*sk,[\n\t ]*struct tcp_sock \*tp\([^{]*\n{\n\)|
      	  struct sock \*sk\1\tstruct tcp_sock *tp = tcp_sk(sk);\n|g'
          -e 's|struct sock \*sk, struct tcp_sock \*tp|
      	  struct sock \*sk|g' -e 's|sk, tp\([^-]\)|sk\1|g'
      
      Fixed four unused variable (tp) warnings that were introduced.
      
      In addition, manually added newlines after local variables and
      tweaked function arguments positioning.
      
      $ gcc --version
      gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
      ...
      $ codiff -fV built-in.o.old built-in.o.new
      net/ipv4/route.c:
        rt_cache_flush |  +14
       1 function changed, 14 bytes added
      
      net/ipv4/tcp.c:
        tcp_setsockopt |   -5
        tcp_sendpage   |  -25
        tcp_sendmsg    |  -16
       3 functions changed, 46 bytes removed
      
      net/ipv4/tcp_input.c:
        tcp_try_undo_recovery |   +3
        tcp_try_undo_dsack    |   +2
        tcp_mark_head_lost    |  -12
        tcp_ack               |  -15
        tcp_event_data_recv   |  -32
        tcp_rcv_state_process |  -10
        tcp_rcv_established   |   +1
       7 functions changed, 6 bytes added, 69 bytes removed, diff: -63
      
      net/ipv4/tcp_output.c:
        update_send_head          |   -9
        tcp_transmit_skb          |  +19
        tcp_cwnd_validate         |   +1
        tcp_write_wakeup          |  -17
        __tcp_push_pending_frames |  -25
        tcp_push_one              |   -8
        tcp_send_fin              |   -4
       7 functions changed, 20 bytes added, 63 bytes removed, diff: -43
      
      built-in.o.new:
       18 functions changed, 40 bytes added, 178 bytes removed, diff: -138
      Signed-off-by: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e412ba7
    • A