Skip to content
Snippets Groups Projects
Commit aa93466b authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f4dd0a9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment