]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tcp_shifted_skb() adjustment of lost_cnt_hint for FACK
authorNeal Cardwell <ncardwell@google.com>
Mon, 13 Feb 2012 20:22:08 +0000 (20:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2012 19:38:57 +0000 (14:38 -0500)
commit0fe21b22954ad57660f4ec3a8328b6620a7887c6
tree3f3b3d70ed8d614c2b64ddeaaac27f526e844497
parent7bc0b4c2065aa0cb29e425566dfe924a3af38216
tcp: fix tcp_shifted_skb() adjustment of lost_cnt_hint for FACK

This commit ensures that lost_cnt_hint is correctly updated in
tcp_shifted_skb() for FACK TCP senders. The lost_cnt_hint adjustment
in tcp_sacktag_one() only applies to non-FACK senders, so FACK senders
need their own adjustment.

This applies the spirit of 186e68b5a4c71b151c240dcb907ce3a6e22356ba -
except now that the sequence range passed into tcp_sacktag_one() is
correct we need only have a special case adjustment for FACK.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c