]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52ddd614ec343b9457bf7f5b1a93513ca6c04a85
tree784b626e5506912ca66f140dfdbf28d0e4ab73a6
parent808e26abffc23404b778c7727d0090977908e953
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