]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tcp: Remove redundant checks when setting eff_sacks
authorAdam Langley <agl@imperialviolet.org>
Sat, 19 Jul 2008 07:07:02 +0000 (00:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jul 2008 07:07:02 +0000 (00:07 -0700)
commit4389dded7767d24290463f2a8302ba3253ebdd56
treeed34a2084c47c6c707e0ce6b4eab8d442f20c4c3
parent33ad798c924b4a1afad3593f2796d465040aadd5
tcp: Remove redundant checks when setting eff_sacks

Remove redundant checks when setting eff_sacks and make the number of SACKs a
compile time constant. Now that the options code knows how many SACK blocks can
fit in the header, we don't need to have the SACK code guessing at it.

Signed-off-by: Adam Langley <agl@imperialviolet.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp_input.c