Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0eca8fee0ce3fa0962ac98ab30c10995754a3195
Commit:     0eca8fee0ce3fa0962ac98ab30c10995754a3195
Parent:     60c778b25972e095df8981dd41e99d161e8738f9
Author:     Vlad Yasevich <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 11 10:12:56 2008 -0500
Committer:  Vlad Yasevich <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 10:59:30 2008 -0500

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]>
---
 net/sctp/socket.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 401dac6..894c278 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -1911,7 +1911,8 @@ 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 is updated when the event is freed.
                 */
-               sctp_assoc_rwnd_increase(event->asoc, copied);
+               if (!sctp_ulpevent_is_notification(event))
+                       sctp_assoc_rwnd_increase(event->asoc, copied);
                goto out;
        } else if ((event->msg_flags & MSG_NOTIFICATION) ||
                   (event->msg_flags & MSG_EOR))
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to