From mboxrd@z Thu Jan 1 00:00:00 1970 From: yotam gigi Subject: Re: [PATCH net 1/3] net: sched: ife: signal not finding metaid Date: Thu, 19 Apr 2018 08:37:10 +0300 Message-ID: References: <20180418213534.6215-1-aring@mojatatu.com> <20180418213534.6215-2-aring@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Jamal Hadi Salim , davem@davemloft.net, Cong Wang , =?UTF-8?B?SmnFmcOtIFDDrXJrbw==?= , Yuval Mintz , netdev@vger.kernel.org, kernel@mojatatu.com To: Alexander Aring Return-path: Received: from mail-io0-f196.google.com ([209.85.223.196]:45522 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeDSFhL (ORCPT ); Thu, 19 Apr 2018 01:37:11 -0400 Received: by mail-io0-f196.google.com with SMTP id a7-v6so5183824ioc.12 for ; Wed, 18 Apr 2018 22:37:11 -0700 (PDT) In-Reply-To: <20180418213534.6215-2-aring@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Apr 19, 2018 at 12:35 AM, Alexander Aring wrote: > We need to record stats for received metadata that we dont know how > to process. Have find_decode_metaid() return -ENOENT to capture this. Agree. > > Signed-off-by: Alexander Aring Reviewed-by: Yotam Gigi > --- > net/sched/act_ife.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c > index a5994cf0512b..49b8ab551fbe 100644 > --- a/net/sched/act_ife.c > +++ b/net/sched/act_ife.c > @@ -652,7 +652,7 @@ static int find_decode_metaid(struct sk_buff *skb, struct tcf_ife_info *ife, > } > } > > - return 0; > + return -ENOENT; > } > > static int tcf_ife_decode(struct sk_buff *skb, const struct tc_action *a, > -- > 2.11.0 >