mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
637784ade2
commit
ac1ed8b82c
5 changed files with 218 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue