OSDN Git Service

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)
commit94f44f28836de320a318730f4952fde8601f4b58
tree2f6240e60129975d61fda093acc561776bab02ed
parentb65ca4c3887589a55f6c9e08ec838a51c2d01b2c
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