OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:17 +0000 (16:34 -0800)
commit623f1904ef55789082259573bb6248df5fea3d92
tree61b3e8c873b5aef9c0af3621fe8778dbeba523cf
parentdd31c1ce7ef7b363215081fde02f13bf3e50b5a1
tcp: fix tcp_shifted_skb() adjustment of lost_cnt_hint for FACK

[ Upstream commit 0af2a0d0576205dda778d25c6c344fc6508fc81d ]

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 1e5289e121372a3494402b1b131b41bfe1cf9b7f -
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c