From: Or Gerlitz Date: Thu, 16 Feb 2017 08:31:11 +0000 (+0200) Subject: net/sched: cls_matchall: Dump the classifier flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a335adad8b06778c0876aa5a5eb8954cd835bf5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net/sched: cls_matchall: Dump the classifier flags The classifier flags are not dumped to user-space, do that. Signed-off-by: Or Gerlitz Acked-by: Jiri Pirko Acked-by: Yotam Gigi Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c index f2141cb55562..35ef1c1be1f3 100644 --- a/net/sched/cls_matchall.c +++ b/net/sched/cls_matchall.c @@ -244,6 +244,9 @@ static int mall_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid)) goto nla_put_failure; + if (head->flags && nla_put_u32(skb, TCA_MATCHALL_FLAGS, head->flags)) + goto nla_put_failure; + if (tcf_exts_dump(skb, &head->exts)) goto nla_put_failure;