commit | aa93466bdfd901b926e033801f0b82b3eaa67be2 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Tue Jul 05 15:20:09 2005 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 05 15:20:09 2005 -0700 |
tree | 5ee3bec452e795d48f380aee4494e06e5aba038e | |
parent | 7f4dd0a9438c73cbb1c240ece31390cf2c57294e [diff] |
[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>