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().
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -770,8 +770,12 @@ enum { · 769 unmodified lines | ||
| 770 | 770 | * actions in a dump. All dump responses will contain the number of actions |
| 771 | 771 | * being dumped stored in for user app's consumption in TCA_ROOT_COUNT |
| 772 | 772 | * |
| 773 | + * TCA_FLAG_TERSE_DUMP user->kernel to request terse (brief) dump that only | |
| 774 | + * includes essential action info (kind, index, etc.) | |
| 775 | + * | |
| 773 | 776 | */ |
| 774 | 777 | #define TCA_FLAG_LARGE_DUMP_ON (1 << 0) |
| 778 | +#define TCA_FLAG_TERSE_DUMP (1 << 1) | |
| 775 | 779 | |
| 776 | 780 | /* New extended info filters for IFLA_EXT_MASK */ |
| 777 | 781 | #define RTEXT_FILTER_VF (1 << 0) |