[DCCP] CCID2: Tell DCCP to quickly check whether cwnd is available
authorAndrea Bittau <a.bittau@cs.ucl.ac.uk>
Tue, 19 Sep 2006 20:10:11 +0000 (13:10 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:39 +0000 (15:19 -0700)
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>
net/dccp/ccids/ccid2.c

index 699a56674659b400e3df1c3395b3896aeb51b7f9..e0acd1ba4e88709f4c20240bbd892e1ab5e2b8c8 100644 (file)
@@ -122,7 +122,7 @@ static int ccid2_hc_tx_send_packet(struct sock *sk,
                }
        }
 
-       return 100; /* XXX */
+       return 1; /* XXX CCID should dequeue when ready instead of polling */
 }
 
 static void ccid2_change_l_ack_ratio(struct sock *sk, int val)