]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Seperate DSACK from SACK fast path
authorBaruch Even <baruch@ev-en.org>
Mon, 5 Feb 2007 07:36:42 +0000 (23:36 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 8 Feb 2007 20:38:49 +0000 (12:38 -0800)
commite165d9a5d0d1a80abdc2b7c91269d8c0d9e165d5
treee00c9cf21c9d917a2392310980f9119ed9529221
parent55a8130b570347203f869b1ee58ac27189254070
[TCP]: Seperate DSACK from SACK fast path

Move DSACK code outside the SACK fast-path checking code. If the DSACK
determined that the information was too old we stayed with a partial cache
copied. Most likely this matters very little since the next packet will not be
DSACK and we will find it in the cache. but it's still not good form and there
is little reason to couple the two checks.

Since the SACK receive cache doesn't need the data to be in host order we also
remove the ntohl in the checking loop.

Signed-off-by: Baruch Even <baruch@ev-en.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp_input.c