]> 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)
commitdaf32cf9e0d341d0e05af12abaec1b59fd6e59d1
tree784b626e5506912ca66f140dfdbf28d0e4ab73a6
parentaf38c0e0241a9dc9a8c87aedac91cff434527614
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