In my previous commit 0349b8779cc9 ("sched: add new attr TCA_EXT_WARN_MSG to report tc extact message") I didn't notice the tc action use different enum with filter. So we can't use TCA_EXT_WARN_MSG directly for tc action. Let's add a TCA_ROOT_EXT_WARN_MSG for tc action specifically and put this param before going to the TCA_ACT_TAB nest.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -789,6 +789,7 @@ enum { · 788 unmodified lines | ||
| 789 | 789 | TCA_ROOT_FLAGS, |
| 790 | 790 | TCA_ROOT_COUNT, |
| 791 | 791 | TCA_ROOT_TIME_DELTA, /* in msecs */ |
| 792 | + TCA_ROOT_EXT_WARN_MSG, | |
| 792 | 793 | __TCA_ROOT_MAX, |
| 793 | 794 | #define TCA_ROOT_MAX (__TCA_ROOT_MAX - 1) |
| 794 | 795 | }; |