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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:12 +0000 (12:56 +0100)
commitfa693cfd8fe442216a73799135cc65ade943bca6
tree6b2c5de8471fe388b4028e1d2f572f273f546ce1
parent9696125fb3ca1660d28a0aef53bcaa1a20a02bdb
net: sched: Clarify error message when qdisc kind is unknown

[ Upstream commit 973bf8fdd12f0e70ea351c018e68edd377a836d1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/sch_api.c