[PATCH 13/18] net/sched: cls_matchall: Dump the classifier flags

Talat Batheesh talatb at mellanox.com
Sun Feb 26 09:09:58 UTC 2017


From: Or Gerlitz <ogerlitz at mellanox.com>

BugLink: https://bugs.launchpad.net/ubuntu/1668019

The classifier flags are not dumped to user-space, do that.

Signed-off-by: Or Gerlitz <ogerlitz at mellanox.com>
Acked-by: Jiri Pirko <jiri at mellanox.com>
Acked-by: Yotam Gigi <yotamg at mellanox.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit 7a335adad8b06778c0876aa5a5eb8954cd835bf5)
Signed-off-by: Talat Batheesh <talatb at mellanox.com>
---
 net/sched/cls_matchall.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c
index b12bc2a..f4327e8 100644
--- a/net/sched/cls_matchall.c
+++ b/net/sched/cls_matchall.c
@@ -234,6 +234,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;
 
-- 
2.5.0





More information about the kernel-team mailing list