Skip to content

Commit 12480e3

Browse files
lxindavem330
authored andcommitted
sctp: define SCTP_SS_DEFAULT for Stream schedulers
According to rfc8260#section-4.3.2, SCTP_SS_DEFAULT is required to defined as SCTP_SS_FCFS or SCTP_SS_RR. SCTP_SS_FCFS is used for SCTP_SS_DEFAULT's value in this patch. Fixes: 5bbbbe3 ("sctp: introduce stream scheduler foundations") Reported-by: Jianwen Ji <[email protected]> Signed-off-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fd82d61 commit 12480e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/uapi/linux/sctp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ struct sctp_add_streams {
11531153
/* SCTP Stream schedulers */
11541154
enum sctp_sched_type {
11551155
SCTP_SS_FCFS,
1156+
SCTP_SS_DEFAULT = SCTP_SS_FCFS,
11561157
SCTP_SS_PRIO,
11571158
SCTP_SS_RR,
11581159
SCTP_SS_MAX = SCTP_SS_RR

net/sctp/outqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void sctp_outq_init(struct sctp_association *asoc, struct sctp_outq *q)
212212
INIT_LIST_HEAD(&q->retransmit);
213213
INIT_LIST_HEAD(&q->sacked);
214214
INIT_LIST_HEAD(&q->abandoned);
215-
sctp_sched_set_sched(asoc, SCTP_SS_FCFS);
215+
sctp_sched_set_sched(asoc, SCTP_SS_DEFAULT);
216216
}
217217

218218
/* Free the outqueue structure and any related pending chunks.

0 commit comments

Comments
 (0)