Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5924274pxb; Mon, 14 Feb 2022 10:49:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoIAsQrErb7HgD2AGBXAoxRldOKakWDUbDWj+Io1Xu2azf7Aw35+m6hQkynOdL6+Fo4Az1 X-Received: by 2002:a17:90b:98:: with SMTP id bb24mr15803377pjb.175.1644864546570; Mon, 14 Feb 2022 10:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644864546; cv=none; d=google.com; s=arc-20160816; b=OATxyUOxmjk3eOntUNzmNBSKDJKFDuAT6l6lOGhjJgRQso076zIi0TCPaff/Kch6/n LF4WKZncCaser0OrPRuwA/QmMbAwg0L/nZE704QG/qHrs+aVMmfJfWYmo14ZvcT/AeCW 79btNTIqeD5CD37ttBp+eGIAwMxU35sYWh031hnF/GYAvlC5CwMw84xhAd9MjexTbYhP jeNTnvKgQPGh99vS5xm6wEzqTaHOYgQGTkbRPtDEN3PmnhE7FyAHqKL2ioY/5+wZyLD0 irPH6kKEKaoA1rfNa3WOPnCbex5pqiawyt/hpq3LV+iRyAv0fhv4UVC/3Ur5BrQSVvXb FXrg== 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=2OrdyqmBmqRtTRcEE2zovAGDc+Ea+0xsXil03wokPmM=; b=DF3STcud6bHeMXQ3J8U39BHqr6j/nB2JiDujttwbQq76WUiwAM27EJrLJ6VqNrbfT3 ayrenv9OfOyP3zPC4vle4TOGkmlEWwGnrggpWMTLyVhum8BuWLRZ1St3LoVsG3sRx7Bi GfS+SnHgk0xsyXV47K93IT/39pcYJRcGK49Z41NEUxGrlrqrKm3QYLlScVh4maOPTY6D t0cmer2suQA90aYWCoGwTR+Ru4POS6Ze3jfh9//JZLnaMAMX+3lgnzCKd8i47EiXloyC cSAVS5J6KoBDLIT8Per/4ZQiQa8vB0a0jZwhaG/TrCHtPchKrh4k/QstdGX2jIHbqoWv rLVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s8qeWSCd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id j22si4338812pfj.322.2022.02.14.10.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 10:49:06 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s8qeWSCd; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 BC7CE79C63; Mon, 14 Feb 2022 10:48:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245201AbiBNJsa (ORCPT + 99 others); Mon, 14 Feb 2022 04:48:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245699AbiBNJqH (ORCPT ); Mon, 14 Feb 2022 04:46:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44A5365835; Mon, 14 Feb 2022 01:39:27 -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 D58AD60F87; Mon, 14 Feb 2022 09:39:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B440C340E9; Mon, 14 Feb 2022 09:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831566; bh=UAB7gaH3NgMrAcDUBNS5Abh/HcDIdCVCCYEvBt09frA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s8qeWSCdW47RQq8EyDndLkns7oE6a34OP9ER2YgwQf6uGCSFy01eUapnSRY6Xi2u+ 2KhIcxfKg0e5nx4ODuBcEPCNGpT/JxdaurMAV9yP4ZIPq56zGRkEpkllwq+Sx/VJlK 2r6mjy8jHc0RpPVmYRYdkXIZtN/FRK8df+yfWeOg= 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 5.10 023/116] net: sched: Clarify error message when qdisc kind is unknown Date: Mon, 14 Feb 2022 10:25:22 +0100 Message-Id: <20220214092459.484974538@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@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 7b24582a8a164..6758968e79327 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