Skip to content

net_sched: sch_fq: add WRR scheduling and 3 bands

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied 4/4
  2. v14 patches 7 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net_sched: sch_fq: remove q->ktime_cachenet/sched/sch_fq.c+15 -130 repliesApplied
2/4net_sched: export pfifo_fast prio2band[]include/net/sch_generic.h net/sched/sch_generic.c+6 -40 repliesApplied
3/4net_sched: sch_fq: add 3 bands and WRR schedulinginclude/uapi/linux/pkt_sched.h net/sched/sch_fq.c+171 -440 repliesApplied
4/4net_sched: sch_fq: add TCA_FQ_WEIGHTS attributeinclude/uapi/linux/pkt_sched.h net/sched/sch_fq.c+36 -00 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDave TahtWillem de BruijnSoheil Hassas YeganehToke Høiland-Jørgensen
SeriesR-b
1/4A-b R-b
2/4A-b R-b
3/4A-b R-b A-b
4/4A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/4] net_sched: sch_fq: add WRR scheduling and 3 bands

As discussed in Netconf 2023 in Paris last week, this series adds to FQ the possibility of replacing pfifo_fast for most setups.

FQ provides fairness among flows, but malicious applications can cause problems by using thousands of sockets.

Having 3 bands like pfifo_fast can make sure that applications using high prio packets (eg AF4) can get guaranteed throughput even if thousands of low priority flows are competing.

Added complexity in FQ does not matter in many cases when/if fastpath added in the prior series is used.

v2: augmented two extack messages (Toke)

Eric Dumazet (4):
net_sched: sch_fq: remove q->ktime_cache
net_sched: export pfifo_fast prio2band[]
net_sched: sch_fq: add 3 bands and WRR scheduling
net_sched: sch_fq: add TCA_FQ_WEIGHTS attribute

 include/net/sch_generic.h      |   1 +
 include/uapi/linux/pkt_sched.h |  14 +-
 net/sched/sch_fq.c             | 265 ++++++++++++++++++++++++++-------
 net/sched/sch_generic.c        |   9 +-
 4 files changed, 228 insertions(+), 61 deletions(-)
Signature · 1 line
2.42.0.582.g8ccd20d70d-goog