]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: introduce terse dump flag
authorVlad Buslov <vladbu@mellanox.com>
Fri, 15 May 2020 11:40:11 +0000 (14:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 17:23:11 +0000 (10:23 -0700)
commit808e26abffc23404b778c7727d0090977908e953
treed45aa7610d3fbd8b655fad22f665c19775dccbc5
parent4087fba40ce1a7f14c834aedb796964196a874e3
net: sched: introduce terse dump flag

Add new TCA_DUMP_FLAGS attribute and use it in cls API to request terse
filter output from classifiers with TCA_DUMP_FLAGS_TERSE flag. This option
is intended to be used to improve performance of TC filter dump when
userland only needs to obtain stats and not the whole classifier/action
data. Extend struct tcf_proto_ops with new terse_dump() callback that must
be defined by supporting classifier implementations.

Support of the options in specific classifiers and actions is
implemented in following patches in the series.

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/sch_generic.h
include/uapi/linux/rtnetlink.h
net/sched/cls_api.c