net/sched: cls_matchall: Dump the classifier flags
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 16 Feb 2017 08:31:11 +0000 (10:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 17:08:05 +0000 (12:08 -0500)
The classifier flags are not dumped to user-space, do that.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_matchall.c

index f2141cb..35ef1c1 100644 (file)
@@ -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;