summaryrefslogtreecommitdiff
path: root/net/sched/act_ife.c
diff options
context:
space:
mode:
authorAlexander Aring <aring@mojatatu.com>2018-04-20 22:15:03 +0300
committerDavid S. Miller <davem@davemloft.net>2018-04-23 04:12:00 +0300
commitf6cd14537ff9919081be19b9c53b9b19c0d3ea97 (patch)
tree523e34eedb64ac0cb4e1e32ef0e11d02b875e3e2 /net/sched/act_ife.c
parent7c5aba211dd61f41d737a2c51729eb9fdcd3edf4 (diff)
downloadlinux-f6cd14537ff9919081be19b9c53b9b19c0d3ea97.tar.xz
net: sched: ife: signal not finding metaid
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 <aring@mojatatu.com> Reviewed-by: Yotam Gigi <yotam.gi@gmail.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ife.c')
-rw-r--r--net/sched/act_ife.c2
1 files changed, 1 insertions, 1 deletions
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,