]> git.ipfire.org Git - thirdparty/linux.git/commit
net/sched: sch_dualpi2: Add missing module alias
authorVictor Nogueira <victor@mojatatu.com>
Thu, 11 Jun 2026 20:58:49 +0000 (17:58 -0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Jun 2026 00:59:32 +0000 (17:59 -0700)
commitee1ba0add3fbd5a28fa5423be373acd147f1e344
tree252d1b4f18c3aa1edb07d5b6c432334e8911a6d7
parent9192a18f6de2f5e3eb3813ecd2895ac0f5c008a9
net/sched: sch_dualpi2: Add missing module alias

When a qdisc is added by name, the kernel tries to autoload its module
via request_qdisc_module(), which calls:

request_module(NET_SCH_ALIAS_PREFIX "%s", name);

i.e. it asks modprobe to resolve the "net-sch-<kind>" alias (e.g.
"net-sch-dualpi2") rather than the module's file name. Since dualpi2
was shipped without this alias, the autoload fails:

tc qdisc add dev lo root handle 1: dualpi2
Error: Specified qdisc kind is unknown.

Fix this by adding the missing alias so the qdisc is autoloaded on demand
like the others.

Fixes: 320d031ad6e4 ("sched: Struct definition and parsing of dualpi2 qdisc")
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Reviewed-by: Pedro Tammela <pctammela@mojatatu.com>
Link: https://patch.msgid.link/20260611205849.3287640-1-victor@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_dualpi2.c