aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv4.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-29 01:15:54 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 19:13:46 -0400
commitc530cfb1ce1e8f230744c3f3bd86771f50725053 (patch)
tree8309c7803ccb3cbbe07e610e6a0e5580a63d83e2 /net/dccp/ipv4.c
parenta84ffe430342db6ee585a5038f3242a6b4112d69 (diff)
[CCID3]: Call sk->sk_write_space(sk) when receiving a feedback packet
This makes the send rate calculations behave way more closely to what is specified, with the jitter previously seen on x and x_recv disappearing completely on non lossy setups. This resembles the tcp_data_snd_check code, that possibly we'll end up using in DCCP as well, perhaps moving this code to inet_connection_sock. For now I'm doing the simplest implementation tho. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r--net/dccp/ipv4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c
index 3cf2cbcdcafd..3fc75dbee4b8 100644
--- a/net/dccp/ipv4.c
+++ b/net/dccp/ipv4.c
@@ -1280,6 +1280,7 @@ static int dccp_v4_init_sock(struct sock *sk)
1280 dccp_init_xmit_timers(sk); 1280 dccp_init_xmit_timers(sk);
1281 inet_csk(sk)->icsk_rto = DCCP_TIMEOUT_INIT; 1281 inet_csk(sk)->icsk_rto = DCCP_TIMEOUT_INIT;
1282 sk->sk_state = DCCP_CLOSED; 1282 sk->sk_state = DCCP_CLOSED;
1283 sk->sk_write_space = dccp_write_space;
1283 dp->dccps_mss_cache = 536; 1284 dp->dccps_mss_cache = 536;
1284 dp->dccps_role = DCCP_ROLE_UNDEFINED; 1285 dp->dccps_role = DCCP_ROLE_UNDEFINED;
1285 1286