All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: sched: Clarify error message when qdisc kind is unknown
@ 2022-01-18 17:19 Victor Nogueira
  2022-01-20 11:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Nogueira @ 2022-01-18 17:19 UTC (permalink / raw)
  To: netdev; +Cc: davem, jhs, xiyou.wangcong, jiri, kuba, kernel, Victor Nogueira

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>
---
 net/sched/sch_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index c9c6f49f9c28..eedb2df7cc6e 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;
 	}
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: sched: Clarify error message when qdisc kind is unknown
  2022-01-18 17:19 [PATCH net-next] net: sched: Clarify error message when qdisc kind is unknown Victor Nogueira
@ 2022-01-20 11:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-01-20 11:30 UTC (permalink / raw)
  To: Victor Nogueira; +Cc: netdev, davem, jhs, xiyou.wangcong, jiri, kuba, kernel

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Tue, 18 Jan 2022 14:19:09 -0300 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next] net: sched: Clarify error message when qdisc kind is unknown
    https://git.kernel.org/netdev/net/c/973bf8fdd12f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-20 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 17:19 [PATCH net-next] net: sched: Clarify error message when qdisc kind is unknown Victor Nogueira
2022-01-20 11:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.