]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Eliminate redundant computations in tcp_write_xmit().
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:20:09 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:20:09 +0000 (15:20 -0700)
commitbaba2e1bb8e1ccda25d1a2afcb91d0257dbc3d67
tree5ee3bec452e795d48f380aee4494e06e5aba038e
parentf26f3f19d996c085c6e2bd603bb4782750daf003
[TCP]: Eliminate redundant computations in tcp_write_xmit().

tcp_snd_test() is run for every packet output by a single
call to tcp_write_xmit(), but this is not necessary.

For one, the congestion window space needs to only be
calculated one time, then used throughout the duration
of the loop.

This cleanup also makes experimenting with different TSO
packetization schemes much easier.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c