]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sctp: add stream interleave support in stream scheduler
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Dec 2017 16:41:30 +0000 (00:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:52:22 +0000 (13:52 -0500)
As Marcelo said in the stream scheduler patch:

  Support for I-DATA chunks, also described in RFC8260, with user message
  interleaving is straightforward as it just requires the schedulers to
  probe for the feature and ignore datamsg boundaries when dequeueing.

All needs to do is just to ignore datamsg boundaries when dequeueing.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo R. Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream_sched.c

index d8c162a4089cab87f8cf14288881567e09bf4721..f5fcd425232a614eff22da5520151f408d106180 100644 (file)
@@ -242,7 +242,8 @@ int sctp_sched_get_value(struct sctp_association *asoc, __u16 sid,
 
 void sctp_sched_dequeue_done(struct sctp_outq *q, struct sctp_chunk *ch)
 {
-       if (!list_is_last(&ch->frag_list, &ch->msg->chunks)) {
+       if (!list_is_last(&ch->frag_list, &ch->msg->chunks) &&
+           !q->asoc->intl_enable) {
                struct sctp_stream_out *sout;
                __u16 sid;