[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)
commit91fed7a15c9222af29a653ecb0ee72cff178fdd8
tree53c72bd6c1bf3216e46565761bc34ea066f5b995
parent0dde7b5404a3d52dcd9ce66d46197f6c3ca97dda
[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