]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: Clarify error message when qdisc kind is unknown
authorVictor Nogueira <victor@mojatatu.com>
Tue, 18 Jan 2022 17:19:09 +0000 (14:19 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jan 2022 11:25:57 +0000 (11:25 +0000)
commit7e6ca6fb07219b405cdc16d9a699aea54cd0853c
tree42d66675f6143bbaf5c291790a4e2a01dd517cc0
parent52a077e32f9600ae7a1b4d79cb37a2f016151b9a
net: sched: Clarify error message when qdisc kind is unknown

When adding a tc rule with a qdisc kind that is not supported or not
compiled into the kernel, the kernel emits the following error: "Error:
Specified qdisc not found.". Found via tdc testing when ETS qdisc was not
compiled in and it was not obvious right away what the message meant
without looking at the kernel code.

Change the error message to be more explicit and say the qdisc kind is
unknown.

Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c