[PATCH 4.9 60/74] net: sched: ife: signal not finding metaid
From: Greg Kroah-Hartman
Date: Fri Apr 27 2018 - 10:05:08 EST
4.9-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexander Aring <aring@xxxxxxxxxxxx>
[ 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 <aring@xxxxxxxxxxxx>
Reviewed-by: Yotam Gigi <yotam.gi@xxxxxxxxx>
Acked-by: Jamal Hadi Salim <jhs@xxxxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
net/sched/act_ife.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/sched/act_ife.c
+++ b/net/sched/act_ife.c
@@ -634,7 +634,7 @@ int find_decode_metaid(struct sk_buff *s
}
}
- return 0;
+ return -ENOENT;
}
struct ifeheadr {