Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5989430pxb; Mon, 14 Feb 2022 12:30:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUEhkFtI+a+gGVHX0HCajnGQJN16HMqzU/w/03Z9JSfRJytXnwYspj7Vs0vdzCb31dw2hj X-Received: by 2002:a63:258:: with SMTP id 85mr604796pgc.609.1644870649472; Mon, 14 Feb 2022 12:30:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644870649; cv=none; d=google.com; s=arc-20160816; b=XNmffvRDPpw82zCD0SiLBtzm2Jt8DWlMfwFuYbe6A5UQlz4AeoANN1SIdbUPzr3rXR YtevZK4VOg4o8udUlqe5fG5sgYbRt9X1laVpTACzVLrI6qbxBlTi67Qxkow5EJ0lTfNw mo5n1QCwkEZ2JN0XqD4qTP2rSy1lfd/prd+oqEGWNmmci8C8tneTO/dvfIF1HHiKFiB6 x+R58GW/9ABK41By9BgziEeHCRy33MazfnpNTr7NvDDq4bSvtdOvDzIHw9ACUbnmU+av 4wfeR2hKo9VFWhlOJCPMRc4uMGuyGaLC+cZtn1Y7y28yc+xmjfWpurtlT/bSWZ+J3zcX bbrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=38Gd+bX8i0eDzO5o+7jzDarFvmQ8iXyw+qIlShJt6uE=; b=CbtZ/PsoiDA7OvCTLeXfYs7DjkdCYZAeoNz0ETiDcyCDrT305aqEoLm8+zyELGYfti wDwF71oBrPT8uCgoczrPODzsefGB70MK1k+1iwPV2Gqm7AJj/pVxL2emwq5DG+QZiH5P AguoOUE2yVweGCSe1vEh0Ld4ZIdqmHuUsuaqgu0CrkPDCzh3Qt53EKSI8mP0igAjzGf6 XZfxNsACHSwRqSf/DX61g7xL+OcfXmMp06lZUbJYSFBnmC7qfPBR8h/rEZ5ekuJGlVz6 tKpMN6nPCSvQWkZgk/DBmKlggA6Pg3GyaWwTz2xFEOGhhIrPLPlGgzHMS0uYlEswCBRc EoNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rMFfK8Hi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c9si12288692pjr.56.2022.02.14.12.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:30:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rMFfK8Hi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1430C8C49B; Mon, 14 Feb 2022 12:01:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244081AbiBNJfR (ORCPT + 99 others); Mon, 14 Feb 2022 04:35:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244060AbiBNJes (ORCPT ); Mon, 14 Feb 2022 04:34:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D72869286; Mon, 14 Feb 2022 01:32:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B377B60FA2; Mon, 14 Feb 2022 09:32:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EAF6C340F2; Mon, 14 Feb 2022 09:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831150; bh=k8li0rbyuLmDg+tAiLENpQPLXkvUb6PfoEEdtHStkQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rMFfK8HilijNOqo0wKT2xsp1DnyqpXt4RmEC9XhpbEK10INGI/GtP3BvLFsm6Wh8v gU9da+G+NdJaL6jIHsiN/m+USGreoO4b7dgxPFpKIR4nF/w2bV00fH3AH0iajRCB65 Eifx/HZ94C1X9AsIMCOT+4Rzis+I0v55ySqKa6ns= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Victor Nogueira , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 14/49] net: sched: Clarify error message when qdisc kind is unknown Date: Mon, 14 Feb 2022 10:25:40 +0100 Message-Id: <20220214092448.769554509@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092448.285381753@linuxfoundation.org> References: <20220214092448.285381753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Victor Nogueira [ 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- 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 af035431bec60..424e70907b967 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1131,7 +1131,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