]> www.infradead.org Git - users/dwmw2/linux.git/commit
net_sched: sch_fq: add the ability to offload pacing
authorJeffrey Ji <jeffreyji@google.com>
Thu, 3 Oct 2024 12:12:19 +0000 (12:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 22:37:54 +0000 (15:37 -0700)
commitf26080d47007df2ee90e65b7d390207ff3a588af
tree3ccb8ea5408dd58651f9384bb2b7b792f573729a
parentf858cc9eed5b05cbe38d7ffd2787c21e3718eb7d
net_sched: sch_fq: add the ability to offload pacing

Some network devices have the ability to offload EDT (Earliest
Departure Time) which is the model used for TCP pacing and FQ packet
scheduler.

Some of them implement the timing wheel mechanism described in
https://saeed.github.io/files/carousel-sigcomm17.pdf
with an associated 'timing wheel horizon'.

This patchs adds to FQ packet scheduler TCA_FQ_OFFLOAD_HORIZON
attribute.

Its value is capped by the device max_pacing_offload_horizon,
added in the prior patch.

It allows FQ to let packets within pacing offload horizon
to be delivered to the device, which will handle the needed
delay without host involvement.

Signed-off-by: Jeffrey Ji <jeffreyji@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20241003121219.2396589-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/pkt_sched.h
net/sched/sch_fq.c