OSDN Git Service

net: sched: implement terse dump support in act
authorVlad Buslov <vladbu@mellanox.com>
Fri, 15 May 2020 11:40:12 +0000 (14:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 17:23:11 +0000 (10:23 -0700)
commitca44b738e59420ae73d9e04a1be630a405e3a0f1
tree784b626e5506912ca66f140dfdbf28d0e4ab73a6
parentf8ab1807a9c9aa14478920e64d1c9d3685aae26f
net: sched: implement terse dump support in act

Extend tcf_action_dump() with boolean argument 'terse' that is used to
request terse-mode action dump. In terse mode only essential data needed to
identify particular action (action kind, cookie, etc.) and its stats is put
to resulting skb and everything else is omitted. Implement
tcf_exts_terse_dump() helper in cls API that is intended to be used to
request terse dump of all exts (actions) attached to the filter.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
include/net/pkt_cls.h
net/sched/act_api.c
net/sched/cls_api.c