History

net/sched: introduce ACT_P_BOUND return code

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'.

Pedro Tammela committed 2 years ago

Commit c2a67de1 parent d3d344a21 files · +22 −21Browse files

Showing the changes to include/net (1 of 21 files). Show all

Unified · Split

include/net/act_api.h+1−0
@@ -137,6 +137,7 @@ struct tc_action_ops { · 136 unmodified lines
137 137
138#ifdef CONFIG_NET_CLS_ACT138#ifdef CONFIG_NET_CLS_ACT
139 139
140#define ACT_P_BOUND 0
140#define ACT_P_CREATED 1141#define ACT_P_CREATED 1
141#define ACT_P_DELETED 1142#define ACT_P_DELETED 1
142 143