提交 65883371 编写于 作者: V Vlad Yasevich

sctp: rwnd_press should be cumulative

rwnd_press tracks the pressure on the recieve window.  Every
timer the receive buffer overlows, we truncate the receive
window and then grow it back.  However, if we don't track
the cumulative presser, it's possible to reach a situation
when receive buffer is empty, but rwnd stays truncated.
Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
上级 cf9b4812
...@@ -1482,7 +1482,7 @@ void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len) ...@@ -1482,7 +1482,7 @@ void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len)
if (asoc->rwnd >= len) { if (asoc->rwnd >= len) {
asoc->rwnd -= len; asoc->rwnd -= len;
if (over) { if (over) {
asoc->rwnd_press = asoc->rwnd; asoc->rwnd_press += asoc->rwnd;
asoc->rwnd = 0; asoc->rwnd = 0;
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册