diff options
author | 2025-04-03 14:10:25 -0700 | |
---|---|---|
committer | 2025-04-08 10:57:49 +0200 | |
commit | 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb (patch) | |
tree | 93874653876710c552ec3b71e35b4986e94636b5 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | sch_drr: make drr_qlen_notify() idempotent (diff) | |
download | wireguard-linux-51eb3b65544c9efd6a1026889ee5fb5aa62da3bb.tar.xz wireguard-linux-51eb3b65544c9efd6a1026889ee5fb5aa62da3bb.zip |
sch_hfsc: make hfsc_qlen_notify() idempotent
hfsc_qlen_notify() is not idempotent either and not friendly
to its callers, like fq_codel_dequeue(). Let's make it idempotent
to ease qdisc_tree_reduce_backlog() callers' life:
1. update_vf() decreases cl->cl_nactive, so we can check whether it is
non-zero before calling it.
2. eltree_remove() always removes RB node cl->el_node, but we can use
RB_EMPTY_NODE() + RB_CLEAR_NODE() to make it safe.
Reported-by: Gerrard Tai <gerrard.tai@starlabs.sg>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250403211033.166059-4-xiyou.wangcong@gmail.com
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions