patch-2.4.27 linux-2.4.27/net/ipv4/tcp.c
Next file: linux-2.4.27/net/ipv4/tcp_input.c
Previous file: linux-2.4.27/net/ipv4/sysctl_net_ipv4.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2004-08-07 16:26:07.000443175 -0700
- Orig file:
linux-2.4.26/net/ipv4/tcp.c
- Orig date:
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.26/net/ipv4/tcp.c linux-2.4.27/net/ipv4/tcp.c
@@ -270,6 +270,8 @@
atomic_t tcp_orphan_count = ATOMIC_INIT(0);
+int sysctl_tcp_default_win_scale = 0;
+
int sysctl_tcp_mem[3];
int sysctl_tcp_wmem[3] = { 4*1024, 16*1024, 128*1024 };
int sysctl_tcp_rmem[3] = { 4*1024, 87380, 87380*2 };
@@ -1452,6 +1454,9 @@
break;
}
tp->copied_seq = seq;
+
+ tcp_rcv_space_adjust(sk);
+
/* Clean up data we have read: This will do ACK frames. */
if (copied)
cleanup_rbuf(sk, copied);
@@ -1710,6 +1715,8 @@
copied += used;
len -= used;
+ tcp_rcv_space_adjust(sk);
+
skip_copy:
if (tp->urg_data && after(tp->copied_seq,tp->urg_seq)) {
tp->urg_data = 0;
@@ -2126,7 +2133,7 @@
tp->packets_out = 0;
tp->snd_ssthresh = 0x7fffffff;
tp->snd_cwnd_cnt = 0;
- tp->ca_state = TCP_CA_Open;
+ tcp_set_ca_state(tp, TCP_CA_Open);
tcp_clear_retrans(tp);
tcp_delack_init(tp);
tp->send_head = NULL;
@@ -2629,10 +2636,6 @@
sysctl_tcp_mem[0] = 768<<order;
sysctl_tcp_mem[1] = 1024<<order;
sysctl_tcp_mem[2] = 1536<<order;
- if (sysctl_tcp_mem[2] - sysctl_tcp_mem[1] > 512)
- sysctl_tcp_mem[1] = sysctl_tcp_mem[2] - 512;
- if (sysctl_tcp_mem[1] - sysctl_tcp_mem[0] > 512)
- sysctl_tcp_mem[0] = sysctl_tcp_mem[1] - 512;
if (order < 3) {
sysctl_tcp_wmem[2] = 64*1024;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)