SCTP: Initialize partial_bytes_acked to 0, when all of the data is acked.
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Thu, 17 Apr 2008 21:22:18 +0000 (14:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Apr 2008 21:22:18 +0000 (14:22 -0700)
commit8b73a07c8ffaa70683022566080f4df3328ea18d
tree2892c383511fc73fe31e1dc93d1f6dcf8f316737
parent2e5a3eaca386ce026f240c7b21e5c4958fcea946
SCTP: Initialize partial_bytes_acked to 0, when all of the data is acked.

According to RFC4960 7.2.2,
When all of the data transmitted by the sender has
been acknowledged by the recerver, partial_bytes_acked is initialized to 0.

This patch conforms to rfc requirement.
Without this fix, cwnd might be error incremented.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c