From: John Heffner <jheffner@psc.edu>
To: David Miller <davem@davemloft.net>
Cc: angelo.castellani@gmail.com, netdev@vger.kernel.org,
andrea.baiocchi@uniroma1.it, francesco@net.infocom.uniroma1.it
Subject: Re: [PATCH 2/2][TCP] YeAH-TCP: limited slow start exported function
Date: Thu, 22 Feb 2007 09:25:07 -0500 [thread overview]
Message-ID: <45DDA7C3.4080301@psc.edu> (raw)
In-Reply-To: <20070222.003239.131918460.davem@davemloft.net>
My patch is meant as a replacement for YeAH patch 2/2, not meant to back
it out. You do still need the second hunk below. Sorry 'bout that.
If you're going to apply YeAH patch 2/2 first, you will also need to
remove the declaration of tcp_limited_slow_start() in include/net/tcp.h.
Thanks,
-John
David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Thu, 22 Feb 2007 00:27:04 -0800 (PST)
>
>> I'll apply this, but could you please also when making suggestions
>> like this provide the patch necessary to kill the function added for
>> YeaH and the call site in the YeaH algorithm?
>
> Here is how I'm resolving this:
>
> diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c
> index 2b4142b..5ee79f3 100644
> --- a/net/ipv4/tcp_cong.c
> +++ b/net/ipv4/tcp_cong.c
> @@ -310,29 +310,6 @@ void tcp_slow_start(struct tcp_sock *tp)
> }
> EXPORT_SYMBOL_GPL(tcp_slow_start);
>
> -void tcp_limited_slow_start(struct tcp_sock *tp)
> -{
> - /* RFC3742: limited slow start
> - * the window is increased by 1/K MSS for each arriving ACK,
> - * for K = int(cwnd/(0.5 max_ssthresh))
> - */
> -
> - const int max_ssthresh = 100;
> -
> - if (max_ssthresh > 0 && tp->snd_cwnd > max_ssthresh) {
> - u32 k = max(tp->snd_cwnd / (max_ssthresh >> 1), 1U);
> - if (++tp->snd_cwnd_cnt >= k) {
> - if (tp->snd_cwnd < tp->snd_cwnd_clamp)
> - tp->snd_cwnd++;
> - tp->snd_cwnd_cnt = 0;
> - }
> - } else {
> - if (tp->snd_cwnd < tp->snd_cwnd_clamp)
> - tp->snd_cwnd++;
> - }
> -}
> -EXPORT_SYMBOL_GPL(tcp_limited_slow_start);
> -
> /*
> * TCP Reno congestion control
> * This is special case used for fallback as well.
> diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c
> index 2d971d1..815e020 100644
> --- a/net/ipv4/tcp_yeah.c
> +++ b/net/ipv4/tcp_yeah.c
> @@ -104,7 +104,7 @@ static void tcp_yeah_cong_avoid(struct sock *sk, u32 ack,
> return;
>
> if (tp->snd_cwnd <= tp->snd_ssthresh) {
> - tcp_limited_slow_start(tp);
> + tcp_slow_start(tp);
> } else if (!yeah->doing_reno_now) {
> /* Scalable */
>
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2007-02-22 14:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-19 10:35 [PATCH 2/2][TCP] YeAH-TCP: limited slow start exported function Angelo P. Castellani
2007-02-19 10:36 ` Angelo P. Castellani
2007-02-19 21:00 ` John Heffner
2007-02-19 23:50 ` Angelo P. Castellani
2007-02-20 4:32 ` John Heffner
2007-02-20 9:20 ` Angelo P. Castellani
2007-02-22 8:27 ` David Miller
2007-02-22 8:32 ` David Miller
2007-02-22 14:25 ` John Heffner [this message]
2007-02-22 14:37 ` David Miller
2007-02-22 8:21 ` David Miller
2007-02-22 16:08 ` Angelo P. Castellani
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=45DDA7C3.4080301@psc.edu \
--to=jheffner@psc.edu \
--cc=andrea.baiocchi@uniroma1.it \
--cc=angelo.castellani@gmail.com \
--cc=davem@davemloft.net \
--cc=francesco@net.infocom.uniroma1.it \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).