]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Make fackets_out accurate
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Tue, 9 Oct 2007 08:24:15 +0000 (01:24 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:08 +0000 (16:52 -0700)
commit96a02aed4d7ced259e0ec5cec4fe433dc970da3f
tree53c72bd6c1bf3216e46565761bc34ea066f5b995
parent2db53c0049cb1f2f12d5f66541b7664a47a0e606
[TCP]: Make fackets_out accurate

Substraction for fackets_out is unconditional when snd_una
advances, thus there's no need to do it inside the loop. Just
make sure correct bounds are honored.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c