diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2017-10-03 19:20:17 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-03 16:27:29 -0700 |
commit | ac1ed8b82cd60ba8e7d84103ac1414b8c577c485 (patch) | |
tree | 23144fff13a5bb0ac5a84f429fd8ac768b49a214 /net/sctp/stream_sched.c | |
parent | 637784ade221a3c8a7ecd0f583eddd95d6276b9a (diff) | |
download | linux-stable-ac1ed8b82cd60ba8e7d84103ac1414b8c577c485.tar.gz linux-stable-ac1ed8b82cd60ba8e7d84103ac1414b8c577c485.tar.bz2 linux-stable-ac1ed8b82cd60ba8e7d84103ac1414b8c577c485.zip |
sctp: introduce round robin stream scheduler
This patch introduces RFC Draft ndata section 3.2 Priority Based
Scheduler (SCTP_SS_RR).
Works by maintaining a list of enqueued streams and tracking the last
one used to send data. When the datamsg is done, it switches to the next
stream.
See-also: https://tools.ietf.org/html/draft-ietf-tsvwg-sctp-ndata-13
Tested-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/stream_sched.c')
-rw-r--r-- | net/sctp/stream_sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/stream_sched.c b/net/sctp/stream_sched.c index 115ddb765169..03513a9fa110 100644 --- a/net/sctp/stream_sched.c +++ b/net/sctp/stream_sched.c @@ -122,10 +122,12 @@ static struct sctp_sched_ops sctp_sched_fcfs = { /* API to other parts of the stack */ extern struct sctp_sched_ops sctp_sched_prio; +extern struct sctp_sched_ops sctp_sched_rr; struct sctp_sched_ops *sctp_sched_ops[] = { &sctp_sched_fcfs, &sctp_sched_prio, + &sctp_sched_rr, }; int sctp_sched_set_sched(struct sctp_association *asoc, |