net: sched: cls_flower: dump offload count value
Change flower in_hw_count type to fixed-size u32 and dump it as TCA_FLOWER_IN_HW_COUNT. This change is necessary to properly test shared blocks and re-offload functionality. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fd2b803fa8
commit
86c55361e5
@@ -98,7 +98,7 @@ struct cls_fl_filter {
|
||||
struct list_head list;
|
||||
u32 handle;
|
||||
u32 flags;
|
||||
unsigned int in_hw_count;
|
||||
u32 in_hw_count;
|
||||
struct rcu_work rwork;
|
||||
struct net_device *hw_dev;
|
||||
};
|
||||
@@ -1880,6 +1880,9 @@ static int fl_dump(struct net *net, struct tcf_proto *tp, void *fh,
|
||||
if (f->flags && nla_put_u32(skb, TCA_FLOWER_FLAGS, f->flags))
|
||||
goto nla_put_failure;
|
||||
|
||||
if (nla_put_u32(skb, TCA_FLOWER_IN_HW_COUNT, f->in_hw_count))
|
||||
goto nla_put_failure;
|
||||
|
||||
if (tcf_exts_dump(skb, &f->exts))
|
||||
goto nla_put_failure;
|
||||
|
||||
|
Reference in New Issue
Block a user