aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bittau <a.bittau@cs.ucl.ac.uk>2006-09-19 16:10:11 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:19:39 -0400
commit446dec30c7f305ed1bb0092b0a8d9367d842a33f (patch)
tree91c7b8e94e973279974f55732b4b37426a3da2df
parent69263bcfb5016bc3bdd099607a4232cba06f8491 (diff)
[DCCP] CCID2: Tell DCCP to quickly check whether cwnd is available
If not enough cwnd is available, tell the sender to check again as soon as possible. This will increase CPU utilization (polling frequently for cwnd) but will improve network performance. That is, the sender will need to wait less before detecting the increase of cwnd. A better architecture would be for the CCID to call-back (or dequeue) from DCCP when it is able to transmit traffic -- not the other way around as it currently occurs. Signed-off-by: Andrea Bittau <a.bittau@cs.ucl.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/dccp/ccids/ccid2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c
index 699a56674659..e0acd1ba4e88 100644
--- a/net/dccp/ccids/ccid2.c
+++ b/net/dccp/ccids/ccid2.c
@@ -122,7 +122,7 @@ static int ccid2_hc_tx_send_packet(struct sock *sk,
122 } 122 }
123 } 123 }
124 124
125 return 100; /* XXX */ 125 return 1; /* XXX CCID should dequeue when ready instead of polling */
126} 126}
127 127
128static void ccid2_change_l_ack_ratio(struct sock *sk, int val) 128static void ccid2_change_l_ack_ratio(struct sock *sk, int val)