From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Subject: [PATCH net 1/3] net: sched: ife: signal not finding metaid Date: Wed, 18 Apr 2018 17:35:32 -0400 Message-ID: <20180418213534.6215-2-aring@mojatatu.com> References: <20180418213534.6215-1-aring@mojatatu.com> Cc: jhs@mojatatu.com, davem@davemloft.net, xiyou.wangcong@gmail.com, jiri@resnulli.us, yuvalm@mellanox.com, netdev@vger.kernel.org, kernel@mojatatu.com, Alexander Aring To: yotam.gi@gmail.com Return-path: Received: from mail-it0-f65.google.com ([209.85.214.65]:54005 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752632AbeDRVgG (ORCPT ); Wed, 18 Apr 2018 17:36:06 -0400 Received: by mail-it0-f65.google.com with SMTP id m134-v6so4512490itb.3 for ; Wed, 18 Apr 2018 14:36:06 -0700 (PDT) In-Reply-To: <20180418213534.6215-1-aring@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: We need to record stats for received metadata that we dont know how to process. Have find_decode_metaid() return -ENOENT to capture this. Signed-off-by: Alexander Aring --- 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