]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: implement action-specific terse dump
authorVlad Buslov <vlad@buslov.dev>
Mon, 2 Nov 2020 20:12:43 +0000 (22:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 16:27:43 +0000 (08:27 -0800)
commit3feda854009b4f5ab7d385359bc29a62ad9ff792
tree2f6240e60129975d61fda093acc561776bab02ed
parentb831d97c31cd30d28a4cf4e7cbf9d0026e72f027
net: sched: implement action-specific terse dump

Allow user to request action terse dump with new flag value
TCA_FLAG_TERSE_DUMP. Only output essential action info in terse dump (kind,
stats, index and cookie, if set by the user when creating the action). This
is different from filter terse dump where index is excluded (filter can be
identified by its own handle).

Move tcf_action_dump_terse() function to the beginning of source file in
order to call it from tcf_dump_walker().

Signed-off-by: Vlad Buslov <vlad@buslov.dev>
Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://lore.kernel.org/r/20201102201243.287486-1-vlad@buslov.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/uapi/linux/rtnetlink.h
net/sched/act_api.c