]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Break out tcp_snd_test() into it's constituent parts.
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:19:54 +0000 (15:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:19:54 +0000 (15:19 -0700)
commitf26f3f19d996c085c6e2bd603bb4782750daf003
tree09b31dd26a3f51c3bb34647ed6911350c5de32e6
parent63f5f653a55cc89dade50007e8edf4a1debd904a
[TCP]: Break out tcp_snd_test() into it's constituent parts.

tcp_snd_test() does several different things, use inline
functions to express this more clearly.

1) It initializes the TSO count of SKB, if necessary.
2) It performs the Nagle test.
3) It makes sure the congestion window is adhered to.
4) It makes sure SKB fits into the send window.

This cleanup also sets things up so that things like the
available packets in the congestion window does not need
to be calculated multiple times by packet sending loops
such as tcp_write_xmit().

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