]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: tc: improve qdisc error messages
authorJohn Ousterhout <ouster@cs.stanford.edu>
Thu, 16 Jan 2025 19:56:41 +0000 (11:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Jan 2025 03:52:06 +0000 (19:52 -0800)
commitf16312b0b9c0ced87e5130d74eca37fc7d59cb6b
tree39a10664446a0d5f44aa7b9269b1f0df648237e5
parentba0209bd1856248ba9cc46cd6daa2b5991d66377
net: tc: improve qdisc error messages

The existing error message ("Invalid qdisc name") is confusing
because it suggests that there is no qdisc with the given name. In
fact, the name does refer to a valid qdisc, but it doesn't match
the kind of an existing qdisc being modified or replaced. The
new error message provides more detail to eliminate confusion.

Signed-off-by: John Ousterhout <ouster@cs.stanford.edu>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20250116195642.2794-1-ouster@cs.stanford.edu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_api.c