Bound actions always return '0' and as of today we rely on '0' being returned in order to properly skip bound actions in tcf_idr_insert_many. In order to further improve maintainability, introduce the ACT_P_BOUND return code. Actions are updated to return 'ACT_P_BOUND' instead of plain '0'. tcf_idr_insert_many is then updated to check for 'ACT_P_BOUND'.
Showing the changes to include/net (1 of 21 files). Show all
Unified · Split
| @@ -137,6 +137,7 @@ struct tc_action_ops { · 136 unmodified lines | |||
| 137 | 137 | ||
| 138 | #ifdef CONFIG_NET_CLS_ACT | 138 | #ifdef CONFIG_NET_CLS_ACT |
| 139 | 139 | ||
| 140 | #define ACT_P_BOUND 0 | ||
| 140 | #define ACT_P_CREATED 1 | 141 | #define ACT_P_CREATED 1 |
| 141 | #define ACT_P_DELETED 1 | 142 | #define ACT_P_DELETED 1 |
| 142 | 143 | ||