]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: cleanup of cwnd initialization in tcp_init_metrics()
authorJiri Kosina <jkosina@suse.cz>
Wed, 22 Dec 2010 23:23:38 +0000 (23:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2010 17:54:26 +0000 (09:54 -0800)
commit693988edfaa6d654d374088a457bb2b2709486c7
tree017b591067952cab3684026a86c6c6eafb7b0dd0
parentc5fe9e2912a82d0486a3e7f2fe66ca31e0ed36ed
tcp: cleanup of cwnd initialization in tcp_init_metrics()

Commit 35ee4db2619f64 ("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@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c