From: Jakub Kicinski Subject: Re: [PATCH net-next 8/8] net: sched: cls_u32: add extack support Date: Tue, 16 Jan 2018 13:50:30 -0800 Message-ID: <20180116135019.1db52024@cakuba.netronome.com> References: <20180116172027.22128-1-aring@mojatatu.com> <20180116172027.22128-9-aring@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, netdev@vger.kernel.org, kernel@mojatatu.com, David Ahern To: Alexander Aring Return-path: Received: from mx3.wp.pl ([212.77.101.9]:35020 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbeAPVug (ORCPT ); Tue, 16 Jan 2018 16:50:36 -0500 In-Reply-To: <20180116172027.22128-9-aring@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 16 Jan 2018 12:20:27 -0500, Alexander Aring wrote: > @@ -780,14 +787,18 @@ static int u32_set_parms(struct net *net, struct tcf_proto *tp, > u32 handle = nla_get_u32(tb[TCA_U32_LINK]); > struct tc_u_hnode *ht_down = NULL, *ht_old; > > - if (TC_U32_KEY(handle)) > + if (TC_U32_KEY(handle)) { > + NL_SET_ERR_MSG(extack, "u32 Link handle must be a hash table"); > return -EINVAL; > + } Since classifiers are commonly built as modules would it make more sense to use NL_SET_ERR_MSG_MOD()?