Re: [PATCH] tcp: cleanup of cwnd initialization intcp_init_metrics()

From: David Miller
Date: Thu Dec 23 2010 - 12:55:52 EST


From: Jiri Kosina <jkosina@xxxxxxx>
Date: Thu, 23 Dec 2010 10:23:38 +0100 (CET)

> Right, that's even better. Updated patch below.
>
>
> From: Jiri Kosina <jkosina@xxxxxxx>
> Subject: [PATCH] tcp: cleanup of cwnd initialization in tcp_init_metrics()
>
> Commit 86bcebafc5e7f5 ("tcp: fix >2 iw selection") fixed a case
> when congestion window initialization has been mistakenly omitted
> by introducing cwnd label and putting backwards goto from the
> end of the function.
>
> This makes the code unnecessarily tricky to read and understand
> on a first sight.
>
> Shuffle the code around a little bit to make it more obvious.
>
> Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>

Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/