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:54:19 +0000 (12:54 +0100)
commit3d0eafd459b2cd32c3044043addc4902c5911ffa
tree80632b8e31c3371729aac46d23e7fa81d5b12518
parent9b569faabd2227025a4d0b9b9f18928d79d9d4ad
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