[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZAexUWGUCHPj1vXk@t14s.localdomain>
Date: Tue, 7 Mar 2023 18:49:05 -0300
From: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>, linux-sctp@...r.kernel.org,
davem@...emloft.net, kuba@...nel.org,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
Neil Horman <nhorman@...driver.com>
Subject: Re: [PATCH net-next 2/2] sctp: add weighted fair queueing stream
scheduler
On Tue, Mar 07, 2023 at 04:23:27PM -0500, Xin Long wrote:
> 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().
>
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Powered by blists - more mailing lists