History

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().

Vlad Buslov committed 6 years ago

Commit 94f44f21 parent b65ca4c2 files · +41 −32Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/rtnetlink.h+4−0
@@ -770,8 +770,12 @@ enum { · 769 unmodified lines
770770 * actions in a dump. All dump responses will contain the number of actions
771771 * being dumped stored in for user app's consumption in TCA_ROOT_COUNT
772772 *
773+ * TCA_FLAG_TERSE_DUMP user->kernel to request terse (brief) dump that only
774+ * includes essential action info (kind, index, etc.)
775+ *
773776 */
774777 #define TCA_FLAG_LARGE_DUMP_ON (1 << 0)
778+#define TCA_FLAG_TERSE_DUMP (1 << 1)
775779
776780 /* New extended info filters for IFLA_EXT_MASK */
777781 #define RTEXT_FILTER_VF (1 << 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t