]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TCP]: Check num sacks in SACK fast path
authorBaruch Even <baruch@ev-en.org>
Mon, 5 Feb 2007 07:37:41 +0000 (23:37 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 8 Feb 2007 20:38:50 +0000 (12:38 -0800)
commit8a3c3a972741dec77220a19642bd3331551ad2d9
tree067787f9faef7ada3d0096742f79a930ec808357
parent6f74651ae626ec672028587bc700538076dfbefb
[TCP]: Check num sacks in SACK fast path

We clear the unused parts of the SACK cache, This prevents us from mistakenly
taking the cache data if the old data in the SACK cache is the same as the data
in the SACK block. This assumes that we never receive an empty SACK block with
start and end both at zero.

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