sctp: introduce round robin stream scheduler
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 3 Oct 2017 22:20:17 +0000 (19:20 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Oct 2017 23:27:29 +0000 (16:27 -0700)
commitac1ed8b82cd60ba8e7d84103ac1414b8c577c485
tree23144fff13a5bb0ac5a84f429fd8ac768b49a214
parent637784ade221a3c8a7ecd0f583eddd95d6276b9a
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>
include/net/sctp/structs.h
include/uapi/linux/sctp.h
net/sctp/Makefile
net/sctp/stream_sched.c
net/sctp/stream_sched_rr.c [new file with mode: 0644]