DCCP protocol discussions
 help / color / mirror / Atom feed
From: Andrea Bittau <a.bittau@cs.ucl.ac.uk>
To: dccp@vger.kernel.org
Subject: [PATCH 07/11] CCID2: Tell DCCP to quickly check whether cwnd is available
Date: Thu, 22 Jun 2006 17:57:34 +0000	[thread overview]
Message-ID: <20060622175734.GG4230@shorty.sorbonet.org> (raw)

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>

---

diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c
index c11201b..b2d140f 100644
--- a/net/dccp/ccids/ccid2.c
+++ b/net/dccp/ccids/ccid2.c
@@ -160,7 +160,7 @@ static int ccid2_hc_tx_send_packet(struc
 		}
 	}
 
-	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)

             reply	other threads:[~2006-06-22 17:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 17:57 Andrea Bittau [this message]
2006-06-22 18:06 ` [PATCH 07/11] CCID2: Tell DCCP to quickly check whether cwnd is available Ian McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060622175734.GG4230@shorty.sorbonet.org \
    --to=a.bittau@cs.ucl.ac.uk \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox