[SCTP]: Do not increase rwnd when reading partial notification.
When a user reads a partial notification message, do not update rwnd since notifications must not be counted towards receive window. Tested-by: Oliver Roll <mail@oliroll.de> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
This commit is contained in:
@@ -1911,6 +1911,7 @@ SCTP_STATIC int sctp_recvmsg(struct kiocb *iocb, struct sock *sk,
|
|||||||
* rwnd by that amount. If all the data in the skb is read,
|
* rwnd by that amount. If all the data in the skb is read,
|
||||||
* rwnd is updated when the event is freed.
|
* rwnd is updated when the event is freed.
|
||||||
*/
|
*/
|
||||||
|
if (!sctp_ulpevent_is_notification(event))
|
||||||
sctp_assoc_rwnd_increase(event->asoc, copied);
|
sctp_assoc_rwnd_increase(event->asoc, copied);
|
||||||
goto out;
|
goto out;
|
||||||
} else if ((event->msg_flags & MSG_NOTIFICATION) ||
|
} else if ((event->msg_flags & MSG_NOTIFICATION) ||
|
||||||
|
Reference in New Issue
Block a user