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 <[EMAIL PROTECTED]>
> @@ -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);
...
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to