netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@o2.pl>
To: =?ISO-8859-2?Q?Ilpo_J=E4rvinen?= <ilpo.jarvinen@helsinki.fi>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH 1/2] [TCP]: Add two new spurious RTO responses to FRTO
Date: Wed, 28 Feb 2007 13:13:02 +0100	[thread overview]
Message-ID: <20070228121302.GA2983@ff.dom.local> (raw)
In-Reply-To: <Pine.LNX.4.64.0702271738340.19465@kivilampi-30.cs.helsinki.fi>

On 27-02-2007 16:50, Ilpo Järvinen wrote:
> New sysctl tcp_frto_response is added to select amongst these
...
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
> @@ -762,15 +763,17 @@ __u32 tcp_init_cwnd(struct tcp_sock *tp,
>  }
>  
>  /* Set slow start threshold and cwnd not falling to slow start */
> -void tcp_enter_cwr(struct sock *sk)
> +void tcp_enter_cwr(struct sock *sk, const int set_ssthresh)
>  {
>  	struct tcp_sock *tp = tcp_sk(sk);
> +	const struct inet_connection_sock *icsk = inet_csk(sk);
>  
>  	tp->prior_ssthresh = 0;
>  	tp->bytes_acked = 0;
>  	if (inet_csk(sk)->icsk_ca_state < TCP_CA_CWR) {

-	if (inet_csk(sk)->icsk_ca_state < TCP_CA_CWR) {
+	if (icsk->icsk_ca_state < TCP_CA_CWR) {

Probably something for the next "BTW".

Regards,
Jarek P.

>  		tp->undo_marker = 0;
> -		tp->snd_ssthresh = inet_csk(sk)->icsk_ca_ops->ssthresh(sk);
> +		if (set_ssthresh)
> +			tp->snd_ssthresh = icsk->icsk_ca_ops->ssthresh(sk);
...

  parent reply	other threads:[~2007-02-28 12:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27 15:50 [PATCH 1/2] [TCP]: Add two new spurious RTO responses to FRTO Ilpo Järvinen
2007-02-27 18:10 ` David Miller
2007-02-28 12:13 ` Jarek Poplawski [this message]
2007-03-01 11:30   ` Ilpo Järvinen
2007-03-01 12:20     ` Jarek Poplawski
2007-03-02 21:27     ` David Miller

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=20070228121302.GA2983@ff.dom.local \
    --to=jarkao2@o2.pl \
    --cc=davem@davemloft.net \
    --cc=ilpo.jarvinen@helsinki.fi \
    --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).