History

sctp: add weighted fair queueing stream scheduler

As it says in rfc8260#section-3.6 about the weighted fair queueing scheduler: A Weighted Fair Queueing scheduler between the streams is used. The weight is configurable per outgoing SCTP stream. This scheduler considers the lengths of the messages of each stream and schedules them in a specific way to use the capacity according to the given weights. If the weight of stream S1 is n times the weight of stream S2, the scheduler should assign to stream S1 n times the capacity it assigns to stream S2. The details are implementation dependent. Interleaving user messages allows for a better realization of the capacity usage according to the given weights. This patch adds Weighted Fair Queueing Scheduler actually based on the code of Fair Capacity Scheduler by adding fc_weight into struct sctp_stream_out_ext and taking it into account when sorting stream-> fc_list in sctp_sched_fc_sched() and sctp_sched_fc_dequeue_done().

Xin Long committed 3 years ago

Commit 42d452e1 parent 4821a075 files · +51 −5Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/sctp.h+2−1
@@ -1212,7 +1212,8 @@ enum sctp_sched_type { · 1211 unmodified lines
1212 SCTP_SS_PRIO,1212 SCTP_SS_PRIO,
1213 SCTP_SS_RR,1213 SCTP_SS_RR,
1214 SCTP_SS_FC,1214 SCTP_SS_FC,
1215 SCTP_SS_MAX = SCTP_SS_FC1215 SCTP_SS_WFQ,
1216 SCTP_SS_MAX = SCTP_SS_WFQ
1216};1217};
1217 1218
1218/* Probe Interval socket option */1219/* Probe Interval socket option */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t