Re: [net-next PATCH v2 2/3] net: TCP thin linear timeouts

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Petlund
Date: Tuesday, February 9, 2010 - 9:40 am

On 02/08/2010 09:50 PM, Damian Lukowski wrote:

Hi

Thanks for the feedback.

As far as I can see, the check a couple of lines above the decrementation
stops the icsk->icsk_backoff from being decremented if already zero.
Beyond that I cannot find any more places where this situation may arise.
Please correct me if I'm wrong and a boundary check is indeed warranted.


Excerpt from tcp_ipv4.c
------------------
                if (seq != tp->snd_una  || !icsk->icsk_retransmits ||
                    !icsk->icsk_backoff)
                        break;

                icsk->icsk_backoff--;
                inet_csk(sk)->icsk_rto = __tcp_set_rto(tp) <<
                                         icsk->icsk_backoff;
------------------

Best regards,
Andreas
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next PATCH v2 2/3] net: TCP thin linear timeouts, Andreas Petlund, (Mon Feb 8, 7:25 am)
Re: [net-next PATCH v2 2/3] net: TCP thin linear timeouts, Damian Lukowski, (Mon Feb 8, 1:50 pm)
Re: [net-next PATCH v2 2/3] net: TCP thin linear timeouts, Andreas Petlund, (Tue Feb 9, 9:40 am)
Re: [net-next PATCH v2 2/3] net: TCP thin linear timeouts, Andreas Petlund, (Wed Feb 10, 6:49 am)
Re: [net-next PATCH v2 2/3] net: TCP thin linear timeouts, Damian Lukowski, (Wed Feb 10, 10:33 am)