From: Victor Nogueira Date: Tue, 18 Jan 2022 17:19:09 +0000 (-0300) Subject: net: sched: Clarify error message when qdisc kind is unknown X-Git-Tag: v6.6.17~8309^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=973bf8fdd12f0e70ea351c018e68edd377a836d1;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 2cb496c..179825a 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1204,7 +1204,7 @@ static struct Qdisc *qdisc_create(struct net_device *dev, err = -ENOENT; if (!ops) { - NL_SET_ERR_MSG(extack, "Specified qdisc not found"); + NL_SET_ERR_MSG(extack, "Specified qdisc kind is unknown"); goto err_out; }