Skip to content

Commit

Permalink
SCTP: Fix PR-SCTP to deliver all the accumulated ordered chunks
Browse files Browse the repository at this point in the history
There is a small bug when we process a FWD-TSN.  We'll deliver
anything upto the current next expected SSN.  However, if the
next expected is already in the queue, it will take another
chunk to trigger its delivery.  The fix is to simply check
the current queued SSN is the next expected one.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
  • Loading branch information
Vlad Yasevich committed Nov 9, 2007
1 parent 7ab9080 commit cd3ae8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/ulpqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ static inline void sctp_ulpq_reap_ordered(struct sctp_ulpq *ulpq, __u16 sid)
continue;

/* see if this ssn has been marked by skipping */
if (!SSN_lt(cssn, sctp_ssn_peek(in, csid)))
if (!SSN_lte(cssn, sctp_ssn_peek(in, csid)))
break;

__skb_unlink(pos, &ulpq->lobby);
Expand Down

0 comments on commit cd3ae8e

Please sign in to comment.