From: Jakub Kicinski Subject: Re: [PATCHv2 net-next 8/8] net: sched: cls_u32: add extack support Date: Wed, 17 Jan 2018 17:27:31 -0800 Message-ID: <20180117172731.2d0938e4@cakuba.netronome.com> References: <20180117224027.24049-1-aring@mojatatu.com> <20180117224027.24049-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.10]:54728 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbeARB1k (ORCPT ); Wed, 17 Jan 2018 20:27:40 -0500 In-Reply-To: <20180117224027.24049-9-aring@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 17 Jan 2018 17:40:27 -0500, Alexander Aring wrote: > diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c > index 8840baa1b9b4..daeac7282387 100644 > --- a/net/sched/cls_u32.c > +++ b/net/sched/cls_u32.c > @@ -524,8 +524,10 @@ static int u32_replace_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, > offloaded = true; > } > > - if (skip_sw && !offloaded) > + if (skip_sw && !offloaded) { > + NL_SET_ERR_MSG(extack, "Failed to offload filter requested with skip sw"); > return -EINVAL; > + } > > return 0; > } Why did you ignore my comment about using NL_SET_ERR_MSG_MOD? Do you disagree with it?