From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [Patch net-next] net_sched: fix an extack message in tcf_block_find() Date: Thu, 27 Sep 2018 19:51:29 -0600 Message-ID: <981bde12-99ab-d04c-d0ba-0b646fdc2bd3@gmail.com> References: <20180927204219.17846-1-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Linux Kernel Network Developers , Jiri Pirko , Jamal Hadi Salim , Vlad Buslov To: Cong Wang , Eric Dumazet Return-path: Received: from mail-pf1-f193.google.com ([209.85.210.193]:46162 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbeI1IMr (ORCPT ); Fri, 28 Sep 2018 04:12:47 -0400 Received: by mail-pf1-f193.google.com with SMTP id d8-v6so3125681pfo.13 for ; Thu, 27 Sep 2018 18:51:32 -0700 (PDT) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 9/27/18 3:36 PM, Cong Wang wrote: > On Thu, Sep 27, 2018 at 2:16 PM Eric Dumazet wrote: >> >> >> >> On 09/27/2018 01:42 PM, Cong Wang wrote: >>> It is clearly a copy-n-paste. >>> >>> Signed-off-by: Cong Wang >>> --- >>> net/sched/cls_api.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c >>> index 3de47e99b788..8dd7f8af6d54 100644 >>> --- a/net/sched/cls_api.c >>> +++ b/net/sched/cls_api.c >>> @@ -655,7 +655,7 @@ static struct tcf_block *tcf_block_find(struct net *net, struct Qdisc **q, >>> >>> *q = qdisc_refcount_inc_nz(*q); >>> if (!*q) { >>> - NL_SET_ERR_MSG(extack, "Parent Qdisc doesn't exists"); >>> + NL_SET_ERR_MSG(extack, "Can't increase Qdisc refcount"); >> >> >> I am not sure it was a copy-n-paste. > > > Make sure you knew there is an exactly same extack message > (with a same English grammar error). > > >> >> Qdisc refcount business is kernel internal. > > Yeah, but the extack message is already there, this patch doesn't add > any new extack. Or you are suggesting we should remove it? IMO the message grammar should be fixed, but the content is correct -- ie, parent qdisc does not exist.