From: Alexander Aring Date: Fri, 20 Apr 2018 19:15:03 +0000 (-0400) Subject: net: sched: ife: signal not finding metaid X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da499024f6fe0899af76346abc93542494aa9e05;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: sched: ife: signal not finding metaid [ Upstream commit f6cd14537ff9919081be19b9c53b9b19c0d3ea97 ] 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 Reviewed-by: Yotam Gigi Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c index 8ccd35825b6b..4b4e4d490f42 100644 --- a/net/sched/act_ife.c +++ b/net/sched/act_ife.c @@ -605,7 +605,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,